[clug] Shell glob for a range of numbers?

James Ring sjr at jdns.org
Fri Jan 9 03:48:28 GMT 2004


 Hey,

The loop should always decrement the counter, not only when the given file
exists.
This code will loop infinitely if any file argus.log.X.gz does not exist.

I think...

 Cheers,
James

> ----- Original Message -----
> From: "Michael Still" <mikal at stillhq.com>
> To: "McClure, Mike" <MikeMcClure at ap.spherion.com>
> Cc: "Andrew Bishop" <andrew at bishop.dropbear.id.au>;
<linux at lists.samba.org>
> Sent: Friday, January 09, 2004 2:03 PM
> Subject: RE: [clug] Shell glob for a range of numbers?
>
>
> > On Fri, 9 Jan 2004, McClure, Mike wrote:
> >
> > > > From: Michael Still [mailto:mikal at stillhq.com]
> > >
> > > um, bogo search algorithm huh?
> > >    if [ $averybadnameforavariable -lt 4 ]
> > > should read
> > >    if [ $averybadnameforavariable -gt 4 ]
> >
> > True, but not the bug I was thinking of... I tell you what, the first
> > person to publically guess can have pizza on me next CLUG.
> >
> > Cheers,
> > Mikal
> >
> > --
> >
> > Michael Still (mikal at stillhq.com) | "All my life I've had one dream,
> > http://www.stillhq.com            |  to achieve my many goals"
> > UTC + 11                          |    -- Homer Simpson
> >
> >
>



More information about the linux mailing list