14.F: Finding Files with find | 14: File Utilities | 14.D: Appending with >> |
The vertical bar | is used to pipe output from one command
to another command. (I/O redirectors > and
< transfer data between files.) You have
already used it to pipe the output of more
to the ls command . (Do
you remember
Another useful pipe is to a print command:
> man cat | enscript -2 -r
This takes the output from man, pipes it to enscript, which then formats the output and sends it to a printer.
Piping save you from creating intermediate files (which must be deleted later), and lets you create combinations of commands.
14.F: Find with find | 14: File Utilities | 14.D: Append with >> |