Call Montréal, Canada 524-949-6869

Blog

Tuesday, June 21, 2011

Access the last argument for a UNIX command to use in your next command

You can access the argument using the !$ variable. For example:


mkdir my-work
cd !$
pwd # => ~/my-work

Developing Ruby on Rails applications and Radiant-based Content Management Systems in Montréal. Contact Firsthand.