How do I untar a directory that I don't know the path to? I only know the directory name.
I know how to untar a single file with a wildcard: tar -xf somefile.tar.gz --wildcards --no-anchored 'index.php'
|
|
|
One way using Content of script.pl:
It accepts two arguments, first one the TAR file and second one the directory to extract. Run it like:
|
|||
|
|
|
I would just take two passes at it:
I don't see a "wildcard include" option in GNU tar. |
|||||
|