[plug] word splitting
Timothy White
weirdo at tigris.org
Wed Nov 17 18:16:26 WST 2004
James Devenish wrote:
> *However* in this case you don't need to use `ls` at all. Just do:
>
> for img in *.jpg; do
> ...
> done
I remember this from my readings of man pages and will probably use it
in some scripts now. But what happens if there are no .jpg files in the
directory? It will still do one loop except with $img='*.jpg'
Any ideas how to get rid of that?
Tim
--
Tim White - Use the Fox, Luke!
PGP/GPG id: 602E944D, Pub Key Serv: subkeys.pgp.net
Fingerprint: 04C2 9682 B7B2 3006 009D A9F3 067E EDCD 602E 944D
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20041117/0b08189f/attachment.pgp>
More information about the plug
mailing list