ONE COMMAND A DAY
April 24, 2009 Leave a comment
This command allows you to look,modify,or combine a file.It can be used to concatenate multiple files together and print result on screen.
cat filename[-n] [-b] [-u] [-s]
|-n||Precede each line output with its line number.|
|-b||Number the lines, as -n, but omit the line numbers from blank lines.|
|-u||The output is not buffered. (The default is buffered output.)|
|-s||cat is silent about non-existent files.|
– – help displays the help manual.
cat file1.txt file2.txt > file3.txt – Reads file1.txt and file2.txt and combines those files to make file3.txt.
This command concatenates or combines the files in reverse order.
(SOURCE for above tac command: LFY APRIL SUBSCRIPTION)