Otherwise, you'll need to closely read the man page for your tar command to see if there is a flag in your version to strip path elements either on the way into or out of the tar. GNU tar (in some versions) has --strip-components NUMBER, others have --strip-path NUMBER, these can remove path elements during extraction.my $cmd = 'tar -cvf results.tar en_ran.out...'; chdir $UploadDir; my $result = `$cmd`;
Phil
In reply to Re: path in tar file...please help
by philcrow
in thread path in tar file...please help
by advait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |