24.04.2009
6>cat command
SUMMERY:
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.
SYNTAX:
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.
EXAMPLES:
cat file1.txt file2.txt > file3.txt – Reads file1.txt and file2.txt and combines those files to make file3.txt.
RELATED COMMAND:
tac command
This command concatenates or combines the files in reverse order.
(SOURCE for above tac command: LFY APRIL SUBSCRIPTION)