The pipe ( | ) symbol takes the output of one command and passes it as input into a following command. You can actually use pipes to build miniature programs right at the command line.

Examples

In the following example, the more command reads the output from the ls command and displays the information one screen at a time:

$ ls -l | more