Sujet : Re: syntax of "find" - am I losing my mind?
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 27. Dec 2024, 23:37:26
Autres entêtes
Message-ID : <slrnvmub16.22so.naddy@lorvorc.mips.inka.de>
References : 1
User-Agent : slrn/1.0.3 (FreeBSD)
On 2024-12-27, Kenny McCormack <
gazelle@shell.xmission.com> wrote:
I'm trying to find all files in my home dir that are not in group foo or
group bar. Most of my files are in one or the other of these groups.
>
This is my tcsh command line:
>
% find ~ -xdev \! \( -group foo -o -group bar \) -ls
Works for me. You can also de-morgan the expression
% find ~ -xdev \! -group foo \! -group bar -ls
but obviously that won't change whatever underlying problem you're
having.
-- Christian "naddy" Weisgerber naddy@mips.inka.de