![]() |
CITS2002 Systems Programming |
← prev | next → | ![]() |
![]() |
|||
Inter-process communication - filtersThis is the Unix philosophy: write programs that do one thing and do it well. Write programs to work together. Write programs that handle text streams, because that is a universal interface. Douglas McIlroy, Bell System Technical Journal, 1978One of the most successful ideas introduced in early Unix systems was the interprocess communication mechanism termed a pipe. Pipes enable shells (or other programs) to connect the output of one program to the input of another, and for arbitrary sequences of pipes - a pipeline - to filter a data-stream with a number of transformations.
prompt>tr -cs 'A-Za-z' '\n' < inputfilename | sort -u | comm -23 - /usr/share/dict/words
comm,
cut,
grep,
gzip,
head,
join,
merge,
paste,
sort,
tail,
tee,
tr,
uniq,
wc,
zcat
CITS2002 Systems Programming, Lecture 18, p9, 2nd October 2023.
|