summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-02 17:46:21 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-02 17:46:21 +0200
commitbdb228e14ac13eeb34601f7f360692cfd467e945 (patch)
treebe993be52bbe0e65719c44a705cc819d225c8f3d /sys/man
parent44f97f0cb1f3fd07c348ae634cb33c3aa74e64db (diff)
read: add -c flag to copy bytes instead of lines
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/1/cat19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/man/1/cat b/sys/man/1/cat
index 837feb7ae..778cb5b42 100644
--- a/sys/man/1/cat
+++ b/sys/man/1/cat
@@ -12,7 +12,10 @@ cat, read \- catenate files
.B -m
] [
.B -n
-.I nline
+.I nlines
+] [
+.B -c
+.I nbytes
] [
.I file ...
]
@@ -54,9 +57,21 @@ The
flag causes it to continue reading and writing multiple lines until end of file;
.B -n
causes it to read no more than
-.I nline
+.I nlines
lines.
.PP
+With the
+.B -c
+flag,
+.I read
+copies exactly
+.I nbytes
+of characters instead of lines. It is mutually exclusive with
+.B -n
+and
+.B -m
+flag.
+.PP
.I Read
always executes a single
.B write