Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 108:27:01 |
Calls: | 290 |
Files: | 905 |
Messages: | 76,683 |
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 <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
Works for me.
You can also de-morgan the expression