Fw: Re: Bash Script Ques

David A. Bandel david
Mon May 17 11:48:15 PDT 2004


On Mon, 9 Jun 2003 13:15:55 -0400
Matthew Carpenter <matt at eisgr.com> wrote:

> 
> This is elegant, and most likely the cleanest way to approach the
> problem.
>
> On Sun, 08 Jun 2003 19:45:37 -0500
> Ben Duncan <bns at meta3.net> wrote:

>>Actually a quicker way would be:
>> 
>> #!/bin/sh
>> # Script
>> for file in `ls myfile*`
>>   do
>>        DO SOMTHING HERE
>>   done

Actually, it?s not elegant at all.  If there are no files starting w/
myfile, you?ll get an ugly error message.  That?s not elegant.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
		Nemesis Racing Team motto
GPG key autoresponder:  mailto:david_key at pananix.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.linux-sxs.org/pipermail/linux-users/attachments/20030609/71b48f37/attachment.pgp


More information about the Linux-users mailing list