.TH CAT 1 .CT 1 files .SH NAME cat \- catenate and print .SH SYNOPSIS .B cat [ .I file ... ] .SH DESCRIPTION .I Cat reads each .I file in sequence and writes it on the standard output. Thus .IP .L cat file .LP prints a file and .IP .L cat file1 file2 >file3 .LP concatenates the first two files and places the result on the third. .PP If no .I file is given, or if the argument .L - is encountered, .I cat reads from the standard input. Output is buffered in blocks matching the input. .SH SEE ALSO .IR p (1), .IR pr (1), .IR cp (1) .SH BUGS Beware of .L "cat a b >a" and .LR "cat a b >b" , which destroy input files before reading them.