cat[options] [files]
Read one or more
files
and print them on standard output. Read standard input if no
files
are specified or if - is specified as one of the files; end input with
EOF
. You can use the > operator to combine several files into a new file; use >> to append files to an existing file.
Print a $ to mark the end of each line. Must be used with -v .
Suppress messages about nonexistent files. (Note: In the BSD version, -s squeezes out extra blank lines.)
Print each tab as ^I and each form feed as ^L. Must be used with -v .
Print output as unbuffered (default is buffered in blocks or screen lines).
Display control characters and other nonprinting characters.
cat ch1Display a file.cat ch1 ch2 ch3 > allCombine files.cat note5 >> notesAppend to a file.cat > temp1Create file at terminal; end with EOF.cat > temp2 << STOPCreate file at terminal; end withSTOP.