[Top] [Prev] [Next]

cat

cat - concatenate files

Synopsis

cat [-] [file...]

Description

The cat command reads each file in sequence and writes it on the standard output. Thus

cat file

prints a file and

cat file1 file2 >file3

concatenates the first two files and places the result on the third. If no file is given, or if minus (-) is given as an argument cat reads from the standard input.

Caveat

Beware of cat a b >a and cat a b >b which destroy input files before reading them.

See Also

read



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.