From f7ef2587d56824f62b286fd652a7783c1b816018 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Thu, 18 Jan 1979 18:39:16 -0500 Subject: [PATCH] Research V7 development Work on file usr/man/man1/cat.1 Co-Authored-By: Dennis Ritchie Synthesized-from: v7 --- usr/man/man1/cat.1 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 usr/man/man1/cat.1 diff --git a/usr/man/man1/cat.1 b/usr/man/man1/cat.1 new file mode 100644 index 0000000000..ebeac0d850 --- /dev/null +++ b/usr/man/man1/cat.1 @@ -0,0 +1,38 @@ +.TH CAT 1 +.SH NAME +cat \- catenate and print +.SH SYNOPSIS +.B cat +[ +.B \-u +] file ... +.SH DESCRIPTION +.I Cat +reads each +.I file +in sequence and writes it on the standard output. +Thus +.IP +cat file +.LP +prints the file and +.IP +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 `\-' is encountered, +.I cat +reads from the standard input. +Output is buffered in 512-byte blocks unless the +standard output is a terminal or the +.B \-u +option is present. +.SH SEE ALSO +pr(1), cp(1) +.SH BUGS +Beware of `cat a b >a' and `cat a b >b', which +destroy input files before reading them. -- 2.20.1