#!/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
In reply to Re: untarring number of files
by Roger
in thread untarring number of files
by agent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |