Why are you using Perl?
Maybe he was just sticking with what he knows... and trying to write portable code.
for file $(ls -1 *.tar)
First, the error: you need for file in. Secondly, that has portability issues. $( ) works with some Bourne-like shells, such as bash and ksh, but it isn't ubiquitous. You could probably get away with for file in `ls -1 *.tar` but there is really no reason that I know of not to just use a glob like for file in *.tar instead.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: untarring number of files
by sauoq
in thread untarring number of files
by agent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |