Cat merge file command to redirect the use of Linux
Look at the documentation:
[Doctor @ localhost Documents] $ < strong> cat --help < / strong>
Usage: cat [option] ... [file] ...
[File] or a combination of standard input to standard output.
-A, --show-All equal -vET
-b, --number-nonblank number nonempty output lines
-e equal -vE
-E, --show-Ends display "$" at the end of each line
-n, --number output numbers for all rows
-s, --squeeze-blank not output more blank lines
-t and -vT equivalent
-T, --show-Tabs the tab character is displayed as ^ I
-v, --show-nonprinting use ^ and M- references, in addition to outside LFD and TAB
--help display this help and exit
--version display version information and exit
If you do not specify a file, or the file is "-", read standard input.
cat f - g f first output, and output standard input, output g of the final.
cat Copy the contents of standard input to standard output.
Merge several files with the command
cat a.txt b.txt> c.txt
cat a.txt b.txt >> c.txt
The first difference is that a file is created or truncated files. The second is appended to the end of the file (the file does not exist is created).