[clug] Shell glob for a range of numbers?

Andrew Pollock andrew-clug at andrew.net.au
Thu Jan 8 00:16:54 GMT 2004


Hi,

It's always bugged me that I can't glob a range of numbers (that I know of).

I've got a bunch of files, named say argus.log.5.gz -> argus.log.21.gz

I wish there was a ".." operator/regex thingy.

I'd like to be able to go "cp argus.log.[5..21].gz /tmp" or something like
that. Unless some regex guru can show me a way of using [] expansion that I
didn't know of...

Andrew


More information about the linux mailing list