[UNCLASSIFIED]RE: [clug] What's the fastest way of deleting f
mbp at sourcefrog.net
Fri May 13 03:04:10 GMT 2005
On 13 May 2005, Peter Barker <pbarker at barker.dropbear.id.au> wrote:
> On Fri, 13 May 2005 Antti.Roppola at brs.gov.au wrote:
> > >I'd be surprised if it were much faster than 'rm -rf' anyhow.
> > Actually, chmod, chown and chgrp are the more usual recursive tasks
> > and I like to use find since I can pipe things through grep as well.
> the -regex option to find is quite useful :) Still, each to their own, and
> pipelines are an integral part of the unixy-way.
> Additionally, I've not found (nor have I looked too hard) why
> find . -name \*.#\*
> doesn't work as I think it should. I use
> find . -regex '.*\.#.*' instead...
Well, one difference is that the regexp will match '.foo.#bar' while
the glob will not. Glob * does not match an initial dot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20050513/8541b7e5/attachment.bin
More information about the linux