Next 14.F: Finding Files with find Up 14: File Utilities Prev 14.D: Appending with >> Contents


Specialized

§ 14.E: Piping 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 ls -a |more?)

Another useful pipe is to a print command:

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.

Next 14.F: Find with find Up 14: File Utilities Prev 14.D: Append with >> Contents


Comments and questions to CP-unix@physics.orst.edu.