When using the C shell, I use
much that it's almost a single character to me.
It means "take the last thing on the previous command line."
It works on
Since most UNIX commands have the filename last, you often need to type
filenames only once, and then you can use
in subsequent lines.
Here are some examples of where it comes in handy:
I get a lot of
To unpack them, I do the following:
tar xvf !$
tar xvf groff.1.05.tar
The same trick can be used for
It's also good when you've edited a file with
, and then
want to check its spelling:
You often want to move a file to another directory and then
to that directory.
sequence can also be used to refer to a directory:
mv grmacs.tar /usr/lib/tmac