Here are some common options for the cat command:
-
-n: Number all output lines.cat -n filename.txt -
-E: Display a dollar sign ($) at the end of each line.cat -E filename.txt -
-A: Show all non-printing characters (equivalent to-vET).cat -A filename.txt -
-b: Number non-blank output lines.cat -b filename.txt -
-s: Suppress repeated empty output lines.cat -s filename.txt -
-T: Display TAB characters as^I.cat -T filename.txt -
-v: Use^andM-notation for non-printing characters, except for line feed and TAB.cat -v filename.txt
These options can be combined to customize the output according to your needs.
