The cat command (abbreviated from concatenate) is a shell command in Unix-like environments.
The cat program concatenates the contents of files, reading from a list of files and/or standard input in sequence and writing their contents in order to standard output. cat takes the list of files as arguments but also interprets the argument "-" as standard input.
cat file | some_command and its args ...
instead of the equivalent and cheaper
some_command and its args ... Since 1995, occasional awards for UUOC have been given out, usually by Perl luminary Randal L. Schwartz. There is a web page devoted to this and other similar awards. In British hackerdom the activity of fixing instances of UUOC is sometimes called demoggification.
cat [file1 file2 file3...
cat file1 file2 > file3 - concatenates file1 and file2 into a new file3
Common Usage
cat is commonly used to display a file on screen or with redirection operators to pipe the output.
The cat syntax is:
Common switches
Cat (Unix) | Cat | Cat (Unix) | Cat
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Cat (Unix)".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world