cat¶
Concatenate files to standard output.
Synopsis¶
Description¶
Concatenate FILE(s) to standard output. If no files are specified or - is used, read from standard input.
Flags¶
| Flag | Short | Description | Default |
|---|---|---|---|
--show-all |
-A |
Equivalent to -vET (show all non-printing chars, ends, and tabs) | false |
--number-nonblank |
-b |
Number non-empty output lines, overrides -n | false |
--show-ends |
-E |
Display $ at end of each line | false |
--number |
-n |
Number all output lines | false |
--squeeze-blank |
-s |
Suppress repeated empty output lines | false |
--show-tabs |
-T |
Display TAB characters as ^I | false |
--show-nonprinting |
-v |
Use ^ and M- notation for non-printing characters | false |
Examples¶
Display a file:
Concatenate multiple files:
Number all lines:
Show line endings and tabs:
Read from stdin and pipe to another command:
Suppress repeated empty lines: