cat

cat

Synopsis
cat copies standard input to standard output
cat <filename> ... copies files to standard output
cat --urls | -u <url> ... copies objects identified by URL to standard output
Details
The cat command copies data to standard output, depending on the command line arguments:

  • If there are no arguments, cat copies from standard input to standard output until it encounters "end of file" on the input stream. If standard input is coming from the console, CTRL-D is used to denote end of file.
  • If the arguments consist of file names, the corresponding file's contents are copied to standard output in the order specified.
  • If the first argument is --urls or -u, the arguments are URLs. The cat opens each URL in turn and copies the resulting data streams to standard output. Supported URL protocols include "file:", "http:" and "ftp:".

The name "cat" is borrowed from UNIX, and is short for "concatenate".

Bugs
There is no dog command.