diff options
author | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-11-05 23:41:43 +0000 |
---|---|---|
committer | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-11-05 23:41:43 +0000 |
commit | 744475a503e3af4597a4a038c3686c25abb48ee0 (patch) | |
tree | 9f134e8357bec94429d3554a08a305dcf7e2fe00 /sys/man | |
parent | 1b02c81c18eb4be6d9372c8d668ad2314bae7872 (diff) |
read: add -r to read runes instead of bytes (thanks umbraticus)
Diffstat (limited to 'sys/man')
-rw-r--r-- | sys/man/1/cat | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/sys/man/1/cat b/sys/man/1/cat index 778cb5b42..3c14ee67d 100644 --- a/sys/man/1/cat +++ b/sys/man/1/cat @@ -10,12 +10,15 @@ cat, read \- catenate files .B read [ .B -m -] [ +| .B -n .I nlines -] [ +| .B -c .I nbytes +| +.B -r +.I nrunes ] [ .I file ... ] @@ -59,20 +62,14 @@ flag causes it to continue reading and writing multiple lines until end of file; causes it to read no more than .I nlines lines. -.PP -With the +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. +.B -r +flags specify a number of bytes or runes to read instead of lines. .PP -.I Read +When reading lines, +.I read always executes a single .B write for each line of input, which can be helpful when |