You're replying to a comment by Amos Shapira.

Amos Shapira Permalink
June 14, 2008, 13:42

Ah, and also all the mentions of "!:x" not using numbers ("$", "^", "*") do not require the ":", e.g.:

$ echo a b c d
a b c d
$ echo !$
echo d
d

But "echo !2" will print the 2nd command in the history list, not the 2nd argument in the previous command.

All this squeezing out of unnecessary typing adds up when you type in a hurry and many times.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.