Re: syntax of "find" - am I losing my mind?

Liste des GroupesRevenir à cu shell 
Sujet : Re: syntax of "find" - am I losing my mind?
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shell
Date : 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/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
27 Dec 24 * syntax of "find" - am I losing my mind?15Kenny McCormack
27 Dec 24 +- Re: syntax of "find" - am I losing my mind?1Wayne
27 Dec 24 +* Re: syntax of "find" - am I losing my mind?2marrgol
27 Dec 24 i`- Re: syntax of "find" - am I losing my mind?1marrgol
27 Dec 24 +- Re: syntax of "find" - am I losing my mind?1Kaz Kylheku
27 Dec 24 `* Re: syntax of "find" - am I losing my mind?10Christian Weisgerber
28 Dec 24  +- Re: syntax of "find" - am I losing my mind?1Kenny McCormack
28 Dec 24  `* Re: syntax of "find" - am I losing my mind?8Lawrence D'Oliveiro
28 Dec 24   `* De Morgan's laws (Was: syntax of "find" - am I losing my mind?)7Kenny McCormack
28 Dec 24    `* Re: De Morgan's laws6Salvador Mirzo
28 Dec 24     `* Re: De Morgan's laws5Janis Papanagnou
30 Dec 24      `* Re: De Morgan's laws4Salvador Mirzo
31 Dec 24       `* Re: De Morgan's laws3Lew Pitcher
31 Dec 24        `* Re: De Morgan's laws2Grant Taylor
1 Jan 25         `- Re: De Morgan's laws1Salvador Mirzo

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal