Creating Shell Commands
The shell recognizes a number of special characters on the command line. This section shows how to use these characters to do the following:
Send a program's output to a file.
Have a program read text from a file.
Append a program's output to a file.
Run a program in the background.
Using the >, >>, and < Redirection Operators
Shell redirection operators are used to direct a program's input and output. The shell can be used to feed a program input from another application, from the command line, or even from another file. These operators are used to copy, create, or overwrite files; to build reports; or to create databases.
The cat (short for concatenate) command is used to print one or more files to your display. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access