in reply to Re: untarring number of files
in thread untarring number of files
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.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: untarring number of files
by thor (Priest) on Oct 23, 2003 at 00:52 UTC | |
by Anonymous Monk on Oct 23, 2003 at 02:26 UTC | |
by skx (Parson) on Oct 23, 2003 at 10:50 UTC |