Link to home
Start Free TrialLog in
Avatar of billtouch
billtouchFlag for United States of America

asked on

build a bash script to untar/unzip all files in a tree.

I need to have a script to expand all the .tar/.gx/.bz2 files in a tree.

I stole a script function to execute the correct expanding programs. Then I tried to pipe filenames to it (with full paths) and that failed complaining that  "extract": No such file or directory.

Can anyone help me correct my approach?
 
 c.sh
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of billtouch

ASKER

It appears to have worked perfectly on the live tree but failed on my test tree. I don't have the time to investigate success so:

Thank you for a very timely, successful answer!

Bill
Thanks!