From bdb228e14ac13eeb34601f7f360692cfd467e945 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 2 Jul 2012 17:46:21 +0200 Subject: read: add -c flag to copy bytes instead of lines --- sys/man/1/cat | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'sys/man/1/cat') 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 -- cgit v1.2.3