Unix Power ToolsUnix Power ToolsSearch this book

30.3. My Favorite Is !$

I use !$ so much that it's almost a single character to me. It means "take the last thing on the previous command line." 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:

-- AN



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.