01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CAT ( l ) CAT ( l )<br />

NAME<br />

cat - concatenate and print files<br />

SYNOPSIS<br />

cat [ -u I [ -s I file ...<br />

DESCRIPTION<br />

Cat reads each file in sequence and writes it on the standard output.<br />

Thus:<br />

cat file<br />

prints the file, and:<br />

cat filel file2 >file3<br />

concatenates the first two files and places the result on the third.<br />

If no input file is given, or if the argument - is encountered, cat<br />

reads from the standard input file. Output is buffered unless the<br />

-u option is specified. The -s option makes cat silent about<br />

non-existent files. No input file may be the same as the output<br />

file unless it is a special file.<br />

WARNING<br />

Command formats such as<br />

cat filel file2 > filel<br />

will cause the original data in file1 to be lost, therefore, take care<br />

when using shell special characters.<br />

SEE ALSO<br />

cp(l), pr(l).<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!