I usually use csh
(actually my /bin/csh is linked to tcsh, an improved version of csh) and frequently use !$
to refer to the last argument of the last command.
But sometimes I would like to use the last two
arguments of the previous command. How can I do that? and I guess I could access the arguments of any previous commands.
I have read How can I recall the argument of the previous bash command? but couldn't find the answer. How can we refer to the second to last argument of the previous command?
For example, If I gave echo tiger rabbit, how can I refer tiger for the following command? An answer for csh would be best but I'm curious about the bash case too.