[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] How to specify the option for gzip used by tar?
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] How to specify the option for gzip used by tar? |
Date: |
Thu, 7 Dec 2017 11:15:28 +0100 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Tristan Miller <address@hidden> wrote:
> Greetings.
>
> On Wed, 6 Dec 2017 15:44:02 -0600, Peng Yu
> <address@hidden> wrote:
> > I am not sure how to use -l.
>
> Not -l (lowercase L), but -I (uppercase i). The argument to -I is the
> compression program you want to use, along with its arguments. So you
> probably want something like -I="gzip -n".
Just note that this is not portable....
from "man tar":
-I include-file
Opens include-file containing a list of files, one per
line, and treats it as if each file appeared separately
on the command line. Be careful of trailing white
spaces. Also beware of leading white spaces, since, for
each line in the included file, the entire line (apart
from the newline) is used to match against the initial
string of files to include. In the case where excluded
files (see X function modifier) are also specified, they
take precedence over all included files. If a file is
specified in both the exclude-file and the include-file
(or on the command line), it is excluded.
This exist since aprox. 35 years.
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'