Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amboar
on Jan 8, 2013
|
parent
|
context
|
favorite
| on:
Favorite Unix Commands
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 !$
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: