start page | rating of books | rating of authors | reviews | copyrights

UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 11.2 History in a Nutshell Chapter 11
The Lessons of History
Next: 11.4 My Favorite Is !:n*
 

11.3 My Favorite Is !$

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


Previous: 11.2 History in a Nutshell UNIX Power ToolsNext: 11.4 My Favorite Is !:n*
11.2 History in a Nutshell Book Index11.4 My Favorite Is !:n*

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System