12

Tip #149   !$ shortcut

!$ contains the last "item" of the previous command.


% cp Inflector.class.php /www/lib/
cp: target `/www/lib/' is not a directory: No such file or directory
% mkdir !$ && cp Inflector.class.php !$
mkdir /www/lib/ && cp Inflector.class.php /www/lib/
% ls !$
ls /www/lib/
Inflector.class.php
%

 
  • TAGS: