summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-14 13:58:13 +0000
committerJim Meyering <jim@meyering.net>2003-05-14 13:58:13 +0000
commitd4b2b56f61316396e2205627a20c63fd947f3e66 (patch)
treedfe23b12460eb9ce0ae502cf0c166e9018ed5e7d /doc
parent48450c549fcfa542306d0b44658373c36b56f529 (diff)
downloadcoreutils-d4b2b56f61316396e2205627a20c63fd947f3e66.tar.xz
(head invocation): Document --bytes=-N and --lines=-N.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 98401f878..8a8fdc4c6 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -2078,19 +2078,23 @@ The program accepts the following options. Also see @ref{Common options}.
@table @samp
-@item -c @var{bytes}
-@itemx --bytes=@var{bytes}
+@item -c @var{n}
+@itemx --bytes=@var{n}
@opindex -c
@opindex --bytes
-Print the first @var{bytes} bytes, instead of initial lines. Appending
-@samp{b} multiplies @var{bytes} by 512, @samp{k} by 1024, and @samp{m}
+Print the first @var{n} bytes, instead of initial lines. Appending
+@samp{b} multiplies @var{n} by 512, @samp{k} by 1024, and @samp{m}
by 1048576.
+However, if @var{n} starts with a @samp{-},
+print all but the last @var{n} bytes of each file.
@itemx -n @var{n}
@itemx --lines=@var{n}
@opindex -n
@opindex --lines
Output the first @var{n} lines.
+However, if @var{n} starts with a @samp{-},
+print all but the last @var{n} lines of each file.
@item -q
@itemx --quiet