cat


This documentation reflects EDirect version 7.60, released on 11/14/2017.

We strive to keep this documentation up-to-date with the latest release. If you are looking for documentation on a more recent version of EDirect, or to find out more about new EDirect releases, please see the Release Notes of NCBI's EDirect documentation.


The cat command, short for “concatenate”, is a Unix command with several functions. Among other things, cat can open one or more files and output their contents to “standard output” (i.e. the terminal screen). To see a full list of arguments, options, and features of cat, see the cat documentation page, or type

man cat

into your terminal to see the manual page for cat.

Input

One or more files.

Output

The contents of the input files to “standard output” (i.e. the terminal screen)

Examples

Opens the file “file1.txt” and displays the contents in the terminal:

cat file1.txt

Opens the files “file1.txt” and “file2.txt” and displays them, one after the other, in the terminal:

cat file1.txt file2.txt