[clug] Shell glob for a range of numbers?

Mark Triggs mst at dishevelled.net
Fri Jan 9 04:02:09 GMT 2004


Michael Still <mikal at stillhq.com> writes:

> On Fri, 9 Jan 2004, James Ring wrote:
>
> [Ditto on the wierd non-cc thing]
>
>> 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...
>
> No, the decrement is in the right place, but you're the closest yet.

There's nothing to ensure that it copies a different file each time
around the loop, so there's no guarantee it will actually end up
copying all of the files within the number range.

Am I close? :o)

Mark

-- 
Mark Triggs
<mst at dishevelled.net>


More information about the linux mailing list