diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2022-12-27 13:02:05 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2022-12-27 13:02:05 +0200 |
commit | 2cde05fa103d892d48b09cb399e7597071722086 (patch) | |
tree | 1120f2d793ed45397f0c734effda97829348034e | |
parent | e89c7a45eba7644693870b613386baa45d624e6a (diff) | |
download | tar-2cde05fa103d892d48b09cb399e7597071722086.tar.gz |
Fix example use of find command in documentation
-rw-r--r-- | doc/tar.texi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/tar.texi b/doc/tar.texi index 39fcf62b..edce69a3 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -7717,7 +7717,11 @@ command. Any number of @option{-T} options can be given in the command line. The following example shows how to use @command{find} to generate a list of -files smaller than 400K in length and put that list into a file +files smaller than 400 blocks in length@footnote{A file system block +is usually 512 bytes, so this amounts to 200K. Use the @samp{c} +suffix to specify size in @emph{bytes}. Also, when using +GNU find, you can specify other size units, such as @samp{k}, +@samp{m}, etc. @xref{Size,,,find.info,GNU Findutils}, for details.} and put that list into a file called @file{small-files}. You can then use the @option{-T} option to @command{tar} to specify the files from that file, @file{small-files}, to create the archive @file{little.tgz}. (The @option{-z} option to @@ -7843,7 +7847,7 @@ file names that begin with dash (similar to @option{--verbatim-files-from} option). This example shows how to use @command{find} to generate a list of files -larger than 800K in length and put that list into a file called +larger than 800 blocks in length and put that list into a file called @file{long-files}. The @option{-print0} option to @command{find} is just like @option{-print}, except that it separates files with a @code{NUL} rather than with a newline. You can then run @command{tar} with both the |