info
-
cat
stands forcatenate
-
read data from files
-
output file contents
-
-
can be used to
-
display text fies
-
copy text files into new file
-
append contents of a text file to the end of another text file
-
usage
-
displaying text files
$ cat textfile $ cat textfile1 textfile2
-
copy a text file
-
shell redirection
$ cat textfile1 > textfile2
-
catenate serveral files into destination file
$ cat textfile1 textfile2 > textfile3
-
-
append text file to another text file
$ cat textfile1 >> textfile2 $ cat textfile1 textfile2 >> textfile3
options
-
-A
equivalent to-vET
-
-E
display “$” at end of each line -
-n
number all output lines -
-T
displayTAB
characters as^I