cat – Concatenate files and print on the standard output.
cat [–benstuvAET] [—number] [—number-nonblank] [—squeeze-blank]
[—show-nonprinting] [—show-ends] [—show-tabs] [—show-all]
[—help] [—version] [file...]
||Number all nonblank output lines, starting with 1.
||Equivalent to –vE.
||Number all output lines, starting with 1.
||Replace multiple adjacent blank lines with a single blank line.
||Equivalent to –vT.
||Ignored; for UNIX compatibility.
||Display control characters except for LFD and TAB using ˆ notation and precede characters that have the high bit set with M-.
||Equivalent to –vET.
||Display a $ after the end of each line.
||Display tab characters as ˆI.
||Print a usage message and exit with a nonzero status.
||Print version information on standard output then exit.
cat writes the contents of each given file, or the standard input if none are given or when a file named – is given, to the standard output.
Usually, the cat command is used to display the contents of a file or to concatenate multiple files into one. For example, cat filel file2 file3> all three files together in one file with the name of all.