Deutsch English Français Italiano |
<vkn1gl$28auc$1@news.xmission.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.unix.shell Subject: syntax of "find" - am I losing my mind? Date: Fri, 27 Dec 2024 20:08:53 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: <vkn1gl$28auc$1@news.xmission.com> Injection-Date: Fri, 27 Dec 2024 20:08:53 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="2370508"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack) Bytes: 1375 Lines: 17 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 think I understand delicate, but why do I have to wash my hands, and be standing in cold water when doing it?" Kaz Kylheku <kaz@kylheku.com> in comp.lang.c