Pipes and Redirections



next up previous contents
Next: &: Background Processing Up: Shells I Previous: |: Pipes

Pipes and Redirections

When piping a command, only the standard output is sent through the pipe. To send the standard error as well, we use

cmd1 |& cmd2
in the C and Tenex shells. In the Bourne/Korn shells,
cmd1 2>& | cmd2

  
Table 4.1: Redirections and Pipes.



Super-User
Fri Feb 17 15:55:40 EST 1995