Tuesday, September 4, 2012

How do you run the last command without the last argument?

use "!:-"

For example, if the following is the last command

sort -k2 <FileName>

then

!:- <New FileName>

is the same as

sort -k2 <New FileName>

No comments :