-
Notifications
You must be signed in to change notification settings - Fork 416
cat
Deekshith SN edited this page Jan 28, 2021
·
3 revisions
The cat command reads one or more files and prints their contents to standard output. Files are read and output in the order they appear in the command arguments.
Syntax
cat [options] [files]
| Option | Description |
|---|---|
| -b | Starting at 1, number non-blank output lines. |
| -e | Display control and non-printing characters followed by a $ symbol at the end of each line. (May require the -v option) |
| -n | Starting at 1, number all output lines. |
| -t | Each tab will display as ^I and each form feed will display as ^L. (May require the -v option) |
| -u | Output is displayed unbuffered. |
| -v | Display control and non-printing characters. Control characters print as ^B for control-B. Non-ASCII characters with the high bit set display as "M-" followed by their lower 7-bit value. |
A list of file names separated by spaces that cat will concatenate the contents of.
NOTE: While the options provided here work on most UNIX systems, some UNIX flavors may have changed their meanings or uses. If you experience an incompatibility with these options, please consult the manual page (see man command) on your system for a list of compatible options.
UNIX