[prev] [index] [next]

Connecting Commands (cont)

Many commands accept list of input files:

E.g.   cat file1 file2 file3

These commands also typically adopt the conventions:

  • read contents of stdin if no filename arguments
  • treat the filename - as meaning stdin
E.g.   cat -n < file   and   cat a - b - c

If a command does not allow this, use:

E.g.   cat file1 file2 file3 | Command