Search This Blog

Tuesday, 17 January 2012

bash last argument

Bash can recall the argument for the previous command using the syntax

!$

e.g.

mkdir a/new/directory
cd !$

No comments:

Post a Comment