in reply to untarring number of files
#!/usr/bin/perl -w chomp(my @list=`ls *.tar`); foreach (@list) { system "tar -xvf $_"; }
And better still, you don't even need to write a script at all, just type this at the shell prompt:#!/usr/bin/perl -w chomp(my @list=`ls *.tar`); system "tar -xvf " . qq{@{[@list]}};
tar -xvf *.tar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: untarring number of files
by sauoq (Abbot) on Oct 23, 2003 at 06:34 UTC |