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'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).
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'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).
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
On 2024-12-27, Kenny McCormack <[email protected]> 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
On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
You can also de-morgan the expression
First time I heard a reference to De Morgans theorems being used as a
verb. ;)
Does make it sound like you are removing something called morgan though, >doesnt it ...
In article <vknmc3$3v5eh$[email protected]>,
Lawrence D'Oliveiro <[email protected]d> wrote:
On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
You can also de-morgan the expression
First time I heard a reference to De Morgans theorems being used as a
verb. ;)
Does make it sound like you are removing something called morgan though, >>doesnt it ...
I think the word we're looking for here is: un-de-morgan.
That is, to translate the verbose but more understandable:
!foo and !bar
into:
! (foo or bar)
via application of De Morgan's law(s) would be to de-morgan it.
CW was suggesting the reverse operation.
[email protected] (Kenny McCormack) writes:
In article <vknmc3$3v5eh$[email protected]>,
Lawrence D'Oliveiro <[email protected]d> wrote:
On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
You can also de-morgan the expression
First time I heard a reference to De Morgans theorems being used as a
verb. ;)
Does make it sound like you are removing something called morgan though, >>> doesnt it ...
I think the word we're looking for here is: un-de-morgan.
That is, to translate the verbose but more understandable:
!foo and !bar
into:
! (foo or bar)
via application of De Morgan's law(s) would be to de-morgan it.
CW was suggesting the reverse operation.
I'd suggest that to write
!(foo or bar)
is /to de-morgan/ the expression ``!foo and !bar'', while to rewrite
back as !(foo or bar) is /to morgan/ the expression.
On 28.12.2024 18:35, Salvador Mirzo wrote:
[email protected] (Kenny McCormack) writes:
In article <vknmc3$3v5eh$[email protected]>,
Lawrence D'Oliveiro <[email protected]d> wrote:
On Fri, 27 Dec 2024 22:37:26 -0000 (UTC), Christian Weisgerber wrote:
You can also de-morgan the expression
First time I heard a reference to De Morgans theorems being used as a
verb. ;)
Does make it sound like you are removing something called morgan though, >>>> doesnt it ...
I think the word we're looking for here is: un-de-morgan.
That is, to translate the verbose but more understandable:
!foo and !bar
into:
! (foo or bar)
via application of De Morgan's law(s) would be to de-morgan it.
CW was suggesting the reverse operation.
I'd suggest that to write
!(foo or bar)
is /to de-morgan/ the expression ``!foo and !bar'', while to rewrite
back as !(foo or bar) is /to morgan/ the expression.
I've ever always seen both directions as transformations according
to the laws of De Morgan (so neither would be en-morgan or de-morgan,
sort of).
In context of 'find' the '-and' form might be considered simpler due
to 'find's inherent 'and'-logic.
I think en-morgan should making something jump into the parentheses and de-morgan should be the reverse.
I propose that the verb "DeMorgan" (as in "to DeMorgan an expression")
be used to represent the application of the normal form of "De
Morgan's theorem", and the verb "deDeMorgan" be used to represent
the application of the inverse of "DeMorgan".
On 12/31/24 09:54, Lew Pitcher wrote:
I propose that the verb "DeMorgan" (as in "to DeMorgan an
expression") be used to represent the application of the normal form
of "De Morgan's theorem", and the verb "deDeMorgan" be used to
represent the application of the inverse of "DeMorgan".
I would suggest "un-DeMorgan" (hyphen optional) in order to avoid
conflict between the two pairs of "de" (case insensitive).
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 143:43:58 |
| Calls: | 12,089 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,474 |