summaryrefslogtreecommitdiff
path: root/src/head.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-05-20 06:32:10 -0600
committerEric Blake <ebb9@byu.net>2009-05-29 16:14:56 -0600
commitc43333419bad3408529bb356cd167f91b6d4f6b2 (patch)
treec37136333340a0af296b9944711a8a9561b7e5d5 /src/head.c
parent159faba1376ffd5a46fe4bbc780d85dd3e502cea (diff)
downloadcoreutils-c43333419bad3408529bb356cd167f91b6d4f6b2.tar.xz
head, tail: make --help less ambiguous
* src/head.c (usage): Use -n K, not -n N, to avoid confusion. * src/tail.c (usage): Likewise. * doc/coreutils.texi (head invocation, tail invocation): Likewise. Reported by Christophe Lyon.
Diffstat (limited to 'src/head.c')
-rw-r--r--src/head.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/head.c b/src/head.c
index 7f90d4b29..c96f91009 100644
--- a/src/head.c
+++ b/src/head.c
@@ -1,5 +1,6 @@
/* head -- output first part of file(s)
- Copyright (C) 89, 90, 91, 1995-2006, 2008 Free Software Foundation, Inc.
+ Copyright (C) 89, 90, 91, 1995-2006, 2008-2009 Free Software
+ Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -118,12 +119,12 @@ With no FILE, or when FILE is -, read standard input.\n\
Mandatory arguments to long options are mandatory for short options too.\n\
"), stdout);
fputs (_("\
- -c, --bytes=[-]N print the first N bytes of each file;\n\
+ -c, --bytes=[-]K print the first K bytes of each file;\n\
with the leading `-', print all but the last\n\
- N bytes of each file\n\
- -n, --lines=[-]N print the first N lines instead of the first 10;\n\
+ K bytes of each file\n\
+ -n, --lines=[-]K print the first K lines instead of the first 10;\n\
with the leading `-', print all but the last\n\
- N lines of each file\n\
+ K lines of each file\n\
"), stdout);
fputs (_("\
-q, --quiet, --silent never print headers giving file names\n\
@@ -133,7 +134,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
fputs (VERSION_OPTION_DESCRIPTION, stdout);
fputs (_("\
\n\
-N may have a multiplier suffix:\n\
+K may have a multiplier suffix:\n\
b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,\n\
GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.\n\
"), stdout);