Contents / Previous / Next


Pipes

The | specifies that all stdout is to be piped as stdin into the next command.

Examples:

  cd /lib
  ls -l | more
  ls -l | grep read
In the context of input-output chaining with pipes
Unix commands can be interpreted as input-output filters.


tee: Read from stdin and write to stdout and files.

Example:

  cd /lib
  ls -l | tee /tmp/All_ls_Output | grep read