|We don't bite newbies here... much|
Re: foreach loop to untar multiple filesby fasoli (Beadle)
|on Nov 13, 2015 at 17:09 UTC||Need Help??|
Thank you all, I will be doing the relevant reading (on glob) and modifying the script accordingly.
I've already copied and tried this
...and it does what I want.
I've tried the following modification in my script though, and something funny happens again.
This gives me the following error:
tar: /home/user/results//home/user/results/results_back.tar.gz: Cannot open: No such file or directory
So the path to the tar.gz file is messed up obviously. But then my hopes build up because I see that it finds the tar.gz file and that's when I stupidly try to be "clever" by removing $results completely from the command and only keeping $_. In that case I'm just getting nothing, it fails quietly. Why is that?