Y
Hacker News
new
|
ask
|
show
|
jobs
by
amboar
4916 days ago
Along the lines of magic shell variables, there's also '!$', which selects the last argument of the previous command. Often I'm looking at different aspects of the same file:
$ file foo $ ls -lh !$ $ vim !$