Quick Note on Bash History Substitution

Expanding the last argument (!$):

$> cat .emacs
$> cat !$

Expanding the last command (!!):

$> ls -alF /etc
$> !! | less

Comments

Comments powered by Disqus