summaryrefslogtreecommitdiffstats
path: root/bin/cat
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-12-23 09:22:06 +0000
committerru <ru@FreeBSD.org>2006-12-23 09:22:06 +0000
commitcce30d6dfc41ba008ea360b1a021a8142d321192 (patch)
treeea8fa672e024db070f019b82cace0f51028b6ab1 /bin/cat
parent3b2e9eb59bdc409c7bd5e4a7bc7ef90f1dba1400 (diff)
downloadFreeBSD-src-cce30d6dfc41ba008ea360b1a021a8142d321192.zip
FreeBSD-src-cce30d6dfc41ba008ea360b1a021a8142d321192.tar.gz
Fix markup.
Diffstat (limited to 'bin/cat')
-rw-r--r--bin/cat/cat.122
1 files changed, 12 insertions, 10 deletions
diff --git a/bin/cat/cat.1 b/bin/cat/cat.1
index e3c4b7e..2608247 100644
--- a/bin/cat/cat.1
+++ b/bin/cat/cat.1
@@ -111,7 +111,7 @@ The command:
.Dl "cat file1"
.Pp
will print the contents of
-.Ar file1
+.Pa file1
to the standard output.
.Pp
The command:
@@ -119,13 +119,13 @@ The command:
.Dl "cat file1 file2 > file3"
.Pp
will sequentially print the contents of
-.Ar file1
+.Pa file1
and
-.Ar file2
+.Pa file2
to the file
-.Ar file3 ,
+.Pa file3 ,
truncating
-.Ar file3
+.Pa file3
if it already exists.
See the manual page for your shell (i.e.,
.Xr sh 1 )
@@ -136,21 +136,21 @@ The command:
.Dl "cat file1 - file2 - file3"
.Pp
will print the contents of
-.Ar file1 ,
+.Pa file1 ,
print data it receives from the standard input until it receives an
.Dv EOF
.Pq Sq ^D
character, print the contents of
-.Ar file2 ,
+.Pa file2 ,
read and output contents of the standard input again, then finally output
the contents of
-.Ar file3 .
+.Pa file3 .
Note that if the standard input referred to a file, the second dash
on the command-line would have no effect, since the entire contents of the file
would have already been read and printed by
.Nm
when it encountered the first
-.Ql \&-
+.Sq Fl
operand.
.Sh SEE ALSO
.Xr head 1 ,
@@ -190,7 +190,9 @@ It appears to have been
Because of the shell language mechanism used to perform output
redirection, the command
.Dq Li cat file1 file2 > file1
-will cause the original data in file1 to be destroyed!
+will cause the original data in
+.Pa file1
+to be destroyed!
.Pp
The
.Nm
OpenPOWER on IntegriCloud