info
-
catstands 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
-
-Aequivalent to-vET -
-Edisplay “$” at end of each line -
-nnumber all output lines -
-TdisplayTABcharacters as^I