Guide to Unix/Explanations/Interprocess Communication

From Wikibooks, open books for an open world
Jump to navigation Jump to search

PIPEs[edit | edit source]

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.