< Guide to Unix < Explanations

PIPEs

One of the beauties of UNIX/Linux are pipes. Pipes are used for redirecting STDOUT (standard out) to STDIN (standard in).

$ command1 | command2

command1 standard output is redirected as standard input to command2.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.