Sujet : Re: syntax of "find" - am I losing my mind?
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shellDate : 27. Dec 2024, 22:57:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241227134400.805@kylheku.com>
References : 1
User-Agent : slrn/pre1.0.4-9 (Linux)
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
It works for me. For instance if I run this on /etc using
-group root -o group shadow
I get only entries that are in groups lp or dip. If I switch
to dip, I get entries in lp and shadow.
Yes, I also tried it in tcsh just to be sure, and I tried it in
my home directory.
This dumps out every file. It should just dump out a few. Why?
Maybe some invisible junk characters in the command line?
Try typing it out afresh.
Is there direct proof in the output that the results are wrong? Are any
of the listed files in group foo or bar contrary to the query?
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca