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 : marrgol (at) *nospam* address.invalid (marrgol)
Groupes : comp.unix.shell
Date : 27. Dec 2024, 22:59:30
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vkn802$3nnb8$1@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (rv:102.0) Gecko/20100101, Betterbird/102
On 2024-12-27 at 22:39 marrgol wrote:
On 2024-12-27 at 21:08 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).
 
$ find ~ -xdev -not -group foo -not -group bar -ls

I've just tried your version too and both give the the same and correct
result -- are you sure you are using GNU findutils find?  Mine is v4.8.0.



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