When I need to do path trimming in GNU tar, I usually chdir to the wanted base directory before calling tar. I don't usually feel comfortable with absolute paths: if I want to restore in the root directory I just chdir to "/" before untarring, which lefts me the ability to untar to a temporary directory if I need.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
In reply to Re: Archive::Tar and the paths within
by polettix
in thread Archive::Tar and the paths within
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |