--include pattern (-W include=pattern)
Process only files or directories that match the specified pat-
tern. Note that exclusions specified with --exclude take prece-
dence over inclusions. If no inclusions are explicitly speci-
fied, all entries are processed by default. The --include option
is especially useful when filtering archives. For example, the
command
tar -c -f new.tar --include='*foo*' @old.tgz
creates a new archive new.tar containing only the entries from
old.tgz containing the string `foo'.
lieven sterck wrote:
alrighty,
thx thpar/napoc, that already shed some light in the darkness ....
but now I'll raise the stacks:
how can i use the -C option to tar all files from a certain dir?
because apparently it only works when using full file names (does not
accept *.png)
L.
Thomas Van Parys wrote:
lieven sterck schreef:
does anyone know how to use the -C option
in 'tar'
thx,
L.
example from the man page:
tar -xjf foo.tar.bz2 -C bar/
this will extract (x) and unbzip (j) the file (f) foo.tar.bz2 into the
directory (C) bar/
cheers,
T.