Re: more on find

Martin J. Dellwo (r06a661@bcc26.kodak.com)
Thu, 13 Jan 1994 14:16:25 -0500 (EST)

> > find . !(\ -user root -o -user bin \) ...

> Both negation and or operators exist. The problem with the find command
> is that the syntax is far from intuitive, many characters must be
> escaped and it has the potential of really messing up your directories
> if you don't specify the command just right. For the example above try:
>
> find . \( \! \( -user root -o -user bin \) \) ...

My above line with (\ instead of \( is a typo in my mail message, but
not in the way I tried the command. I also tried with a slash before
the '!', but it did not work. The problem is that a space is required
after the '!', which I had not tried. In fact, the slash before '!'
does not seem to be required (as you noted, this is not special to sh,
which I am using). The second set of parentheses are also unneeded
for my example. The error message received because of the missing
space is the uninformative "find: missing conjunction".

Thanks for the help,

-Marty

-- 
Martin J. Dellwo     (215) 983-7396
E-mail:  r06a661@bcc26.kodak.com, mdellwo@Kodak.COM
Biophysics and Computational Chemistry
Sterling Winthrop Pharmaceuticals Research Division