neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Dear Masters,
I have the following subdirectories:
I have the following subdirectories:
What I am trying to do is to traverse "dir*" and execute "gunzip" command on the files inside them. I tried this code, but doesn't work:-dir1 |_ file1.gz |_ ... |_ file1000.gz ... -dir100 |_file1.gz |_ ... |_ file300.gz
Please advice what's wrong with the above construct?for my $sd (@dirs) { system("cd $sd"); system("gunzip *.gz"); }
---
neversaint and everlastingly indebted.......
neversaint and everlastingly indebted.......
Back to
Seekers of Perl Wisdom