Commands
cat
[OPTION] [FILE]…
Copies the specified file (or standard input) to standard output.
Example: To display the contents of the file /etc/passwd to standard output, use
cat /etc/passwd
To send the contents of a file to some other program as input, cat is frequently used on the left side of a pipe: |
cat database.dat | sort -rn
-A, --show-all | This option is equivalent to “-vET”. |
-b, --number-nonblank | Use this option to include line numbers for output (nonblank lines only) and to number all nonblank output lines, starting with 1. |
-e | This option is equivalent to “-vE”. |
-E, --show-ends | Use this option to display a “$” after the end of each ... |
Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.