Usage: cat [option] [file]... outputs a combination of [file] or standard input to standard output. -A, -- show-all is equivalent to-vET-B, -- number-nonblank is equivalent to-vE-e, -- show-ends: $-n, -- number is displayed at the end of each line.
Usage: cat [option] [file]...
Output a [file] or a combination of standard input to standard output.
-A, -- show-all is equivalent to-vET.
-B, -- number-nonblank: number of non-empty output rows
-E is equivalent to-vE.
-E, -- show-ends is displayed at the end of each line $
-N, -- number indicates the number of all rows output.
-S, -- squeeze-blank does not output multiple empty rows
-T is equivalent to-vT.
-T, -- show-tabs: Display the skip character as ^ I
-U (ignored)
-V, -- show-nonprinting use ^ and M-reference, except LFD and TAB
-- Help: displays the help information and exits.
-- Version: Output version information and exit
If the [file] is default, or the [file] is-, the standard input is read.
Example 1
[Root @ localhost ~] # Cat test # common output 111111111122222222223333333333 [root @ localhost ~] # Cat-n test # the starting line number is 1 1111111111 2 3 4 2222222222 5 6 3333333333 [root @ localhost ~] # Cat-E test # end with $1111111111 $2222222222 $3333333333 $ [root @ localhost ~] # Cat-s test # merge more than two empty rows into one 111111111122222222223333333333 [root @ localhost ~] # Cat-ns test # empty row removal, add row 1 1111111111 2 3 2222222222 4 5 3333333333
Example 2
[Zhangy @ BlackGhost awksed] $ cat x *> google_bak.tar.gz # Merge files