Sujet : Re: syntax of "find" - am I losing my mind?
De : wayne (at) *nospam* nospam.invalid (Wayne)
Groupes : comp.unix.shellDate : 27. Dec 2024, 22:29:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vkn67l$3qun4$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
The "-ls" doesn't work as yoiu expect. Try something like -print or
-printf instead.
-- WayneOn 12/27/2024 3:08 PM, Kenny McCormack 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
This dumps out every file. It should just dump out a few. Why?
I tried replacing \! with -not and I tried replacing -o with -or.
Neither helped.
I'm sure I've done this sort of thing in the past (successfully).