]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: Improve description of --files0-from option
authorPádraig Brady <P@draigBrady.com>
Mon, 1 Dec 2008 02:09:19 +0000 (02:09 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 1 Dec 2008 02:09:19 +0000 (02:09 +0000)
* doc/coreutils.texi: Describe the most common
usage of --files0-from=- to read names from stdin.
* src/du.c: Likewise.
* src/sort.c: Likewise.
* src/wc.c: Likewise.

doc/coreutils.texi
src/du.c
src/sort.c
src/wc.c

index cf56cadb20f8c6a9eeae13840d22f45ba8ccbc51..0e2f1500e622d80b1854f85b1ad349a31c419315 100644 (file)
@@ -3266,17 +3266,18 @@ Print only the maximum line lengths.
 @c This is commented out to avoid a texi2dvi failure.
 @c texi2dvi (GNU Texinfo 4.11) 1.104
 @c @cindex including files from @command{\cmd\}
-Rather than processing files named on the command line, process those
-named in file @var{FILE}; each name is terminated by a null byte.
+Disallow processing files named on the command line, and instead process
+those named in file @var{FILE}; each name being terminated by a NUL byte.
 This is useful \withTotalOption\
 when the list of file names is so long that it may exceed a command line
 length limitation.
 In such cases, running @command{\cmd\} via @command{xargs} is undesirable
 because it splits the list into pieces and makes @command{\cmd\} print
 \subListOutput\ for each sublist rather than for the entire list.
-One way to produce a list of null-byte-terminated file names is with @sc{gnu}
+One way to produce a list of NUL terminated file names is with @sc{gnu}
 @command{find}, using its @option{-print0} predicate.
-Do not specify any @var{FILE} on the command line when using this option.
+If @var{FILE} is @samp{-} then the NUL terminated file names
+are read from standard input.
 @end macro
 @filesZeroFromOption{wc,,a total}
 
index 2b0792b37cfc0411e72623a40913100b4777479c..e5669786de504b37c29788ac0fa86c452eddbf40 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -292,7 +292,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\
 "), stdout);
       fputs (_("\
       --files0-from=F   summarize disk usage of the NUL-terminated file\n\
-                          names specified in file F\n\
+                          names specified in file F;\n\
+                          If F is - then read names from standard input\n\
   -H                    like --si, but also evokes a warning; will soon\n\
                           change to be equivalent to --dereference-args (-D)\n\
   -h, --human-readable  print sizes in human readable format (e.g., 1K 234M 2G)\n\
index df51d8b330956412e89d25d7b15934acbe64e43e..f43856315adcca86c80cdce66023f682c9fb8a34 100644 (file)
@@ -363,7 +363,8 @@ Other options:\n\
       --compress-program=PROG  compress temporaries with PROG;\n\
                               decompress them with PROG -d\n\
       --files0-from=F       read input from the files specified by\n\
-                            NUL-terminated names in file F\n\
+                            NUL-terminated names in file F;\n\
+                            If F is - then read names from standard input\n\
 "), stdout);
       fputs (_("\
   -k, --key=POS1[,POS2]     start a key at POS1 (origin 1), end it at POS2\n\
index 280d7ac885f2708bde33e47297acd7ed18f7ff8b..8cfd974cacfe0a04a9b0caa4f730715087b3e843 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -121,7 +121,8 @@ read standard input.\n\
 "), stdout);
       fputs (_("\
       --files0-from=F    read input from the files specified by\n\
-                           NUL-terminated names in file F\n\
+                           NUL-terminated names in file F;\n\
+                           If F is - then read names from standard input\n\
   -L, --max-line-length  print the length of the longest line\n\
   -w, --words            print the word counts\n\
 "), stdout);