cat - Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.
cat
[-A|--show-all]
[-b|--number-nonblank]
[-e ]
[-E|--show-ends]
[-n|--number]
[-s|--squeeze-blank]
[-t ]
[-T|--show-tabs]
[-v|--show-nonprinting]
[-u ] [-h|--help]
[-V|--version] [file]
Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.
equivalent to -vET
number nonempty output lines, overrides -n
equivalent to -vE
display $ at end of each line
number all output lines
suppress repeated empty output lines
equivalent to -vT
display TAB characters at ^I
use ^ and M- notation, except for LF (\n) and TAB (\t)
(ignored)
Print help
Print version
v(uutils coreutils) 0.10.0
Print the contents of a file to `stdout`:
cat path/to/file
Concatenate several files into an output file:
cat path/to/file1 path/to/file2 ... > path/to/output_file
Append several files to an output file:
cat path/to/file1 path/to/file2 ... >> path/to/output_file
Copy the contents of a file into an output file without buffering:
cat -u /dev/tty12 > /dev/tty13
Write `stdin` to a file:
cat - > path/to/file
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.