Tristan Miller <psychon...@nothingisreal.com> wrote:

> Greetings.
>
> On Wed, 6 Dec 2017 15:44:02 -0600, Peng Yu
> <pengyu...@gmail.com> 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:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to