[lug] help! shell script
Kirk Rafferty
kirk at fpcc.net
Tue Jan 11 10:02:33 MST 2000
On Tue, 11 Jan 2000, Rich Deeming wrote:
> Legin,
>
> Don't use the (') around the file selection.
> ie. for a in *.tar.gz
Oh jeez, I'm a dork. My previous post recommended using grave quotes.
Which would have been fine if you were doing something like:
for a in `ls *.tar.gz`
do
.
But which does *not* work for:
for a in `*.tar.gz`
.
Sorry for the bad advice. Rich is correct, just eliminate all quotes.
Grave quotes only for executing commands.
Doh, sorry!
-k
--
_/ Kirk Rafferty - Fairplay Communications - Kirk at fpcc.net - 720.304.0791 _/
_/ Fast Internet access for $16.95/month -- http://www.fpcc.net _/
_/ Fairplay Communications uses Open Source Operating Systems exclusively _/
More information about the LUG
mailing list