Korn shell Tutorials :Pipes and Coprocesses

Korn shell Tutorials :Pipes and Coprocesses
PIPES
For a serial processing of data from one command to the next do:
command1|command2|command3 ...
e.g. last |awk '{print $1}' |sort -u.
Coprocesses
One can have one background process with which one can comunicate with read -p and print -p. It is started with command |&. If one uses: ksh & then this shell in the background will do everything for us even telnet and so on: print -p "telnet hostname".

No comments: