21 Pipes

A “pipe” is a FIFO character list, which is managed by UNIX as yet another variety of file.

One group of processes may “write” into a “pipe” and another group may “read” from the same “pipe”. Hence “pipe”s may be, and are used, primarily for interprocess communication.

By exploiting the concept of a “filter”, which is a program which reads an input file and transforms it into an output file, and by using “pipes” to link two or more programs of this type together, UNIX offers its users a surprisingly comprehensive and sophisticated set of facilities.