in reply to Re: foreach loop to untar multiple files
in thread foreach loop to untar multiple files
Carefully look at your output... the file path is being specified twice... tar: /home/user/results//home/user/results/results_back.tar.gz. Try this:
for (@tar){ print `tar -tvf $_`; }
ps. I'd recommend you look at my Archive::Extract example here, to avoid having to shell out.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: foreach loop to untar multiple files
by afoken (Chancellor) on Nov 13, 2015 at 17:59 UTC | |
Re^3: foreach loop to untar multiple files
by fasoli (Beadle) on Nov 13, 2015 at 17:22 UTC | |
by stevieb (Canon) on Nov 13, 2015 at 17:38 UTC |