[prev] [index] [next]

cat: the simplest filter

The cat command copies its input to output unchanged (identity filter).

When supplied a list of file names, it concatenates them onto stdout.

Some options:

-n number output lines (starting from 1)
-s squeeze consecutive blank lines into single blank line
-v display control-characters in visible form (e.g. ^C)

The tac command copies files, but reverses the order of lines.