UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 8.20 How Many Backslashes?Chapter 9Next: 9.2 Fix a Line Faster with Line-Kill and Word-Erase
 

9. Saving Time on the Command Line

Contents:
What's Special About the UNIX Command Line
Fix a Line Faster with Line-Kill and Word-Erase
Reprinting Your Command Line with CTRL-r
Use Wildcards to Create Files?
Build Strings with { }
String Editing (Colon) Operators
String Editing in ksh and bash
Filename Completion: Faster Filename Typing
Don't Match Useless Files in Filename Completion
Filename Completion Isn't Always the Answer
Repeating a Command with a foreach Loop
The Bourne Shell for Loop
Multiline Commands, Secondary Prompts
Using Here Documents for Form Letters, etc.
Throwaway Scripts for Complicated Commands
Command Substitution
Handling Lots of Text with Temporary Files
Process Substitution
For the Impatient: Type-Ahead
Too Many Files for the Command Line
Handle Too-Long Command Lines with xargs
xargs: Problems with Spaces and Newlines
Workaround for "Arguments too long" Error
Get File List by Editing Output of ls -l, grep, etc.
The C Shell repeat Command
Expect

9.1 What's Special About the UNIX Command Line

One of UNIX's best features is the shell's command line. Why? Every modern operating system has a command line; we don't use card readers with obscure job setup cards any more. What makes UNIX's special?

The UNIX shell command line allows lots of shortcuts. Some of these you'll find in other operating systems; some you won't. In this chapter, we'll introduce a lot of these shortcuts. Among other things, we'll discuss:

Some fundamental command-line features that we aren't discussing in this chapter, but which are discussed elsewhere, are:

You don't need to be a command-line virtuoso to use UNIX effectively. But you'd be surprised at how much you can do with a few tricks. If all you can do at the command line is type ls or start FrameMaker, you're missing out on a lot.

- ML


Previous: 8.20 How Many Backslashes?UNIX Power ToolsNext: 9.2 Fix a Line Faster with Line-Kill and Word-Erase
8.20 How Many Backslashes?Book Index9.2 Fix a Line Faster with Line-Kill and Word-Erase

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