Le Ven 20 Janvier 2006 23:30, Joey Hess a écrit : > Pierre Habouzit wrote: > > why not use -wholename instead of -regexp then ? > > I don't think -wholename has the same semantics as -X. -X excludes > any filename containing the given text.
I think you didn't get me. I mean, atm you apparently use clever quoting to avoid the `foo` part of find $DIRECTORY ! \( -regex .\*foo.\* \) to contain any regex, which is error prone. my question was, why don't use : find $DIRECTORY ! \( -wholename \*foo\* \) which does exactly what you want (If I understand find(1) correctly) you'd only need to quote the stars and question marks, which isn't too painful. but maybe I miss a thing, it was only a suggestion ;) -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpMkd5uIntNU.pgp
Description: PGP signature

