Re: how to exclude a directory from find?

1996-09-13 Thread Bill Roman
Casper BodenCummins wrote: Lazaro Salem [EMAIL PROTECTED] wrote: The -print flag is not really needed as is executed by default. This isn't true of all systems. If you want portability, include the -print. I believe that POSIX.2 mandates -print as the default. Can someone who has the

Re: how to exclude a directory from find?

1996-09-12 Thread Lazaro . Salem
You wrote: Subject: how to exclude a directory from find? Author: debian-user@lists.debian.org at cclink Date:11.09.96 21:33 I'm trying to search for unused files, but I want to exclude a directory from the search. I tried cd /scratch find . -atime +7 -path ./var -prune -o -print

RE: how to exclude a directory from find?

1996-09-12 Thread Casper BodenCummins
Lazaro Salem [EMAIL PROTECTED] wrote: The -print flag is not really needed as is executed by default. This isn't true of all systems. If you want portability, include the -print. Certainly it would be nice to have something like: $ find . -type !d to match files which are not directories,

RE: how to exclude a directory from find?

1996-09-12 Thread Casper BodenCummins
Carlos Carvalho [EMAIL PROTECTED] wrote: I'm trying to search for unused files, but I want to exclude a directory from the search. I tried cd /scratch find . -atime +7 -path ./var -prune -o -print but it doesn't work. Any clues? Move the -atime condition to just before the -print (then have a

Re: how to exclude a directory from find?

1996-09-12 Thread Heiko Schlittermann
[EMAIL PROTECTED] wrote: : : : Certainly it would be nice to have something like: : $ find . -type !d find ! -type d or depending on your shell find \! -type d Heiko -- email : [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] pgp : A1 7D F6 7B 69 73 48 35 E1 DE 21

Re: how to exclude a directory from find?

1996-09-12 Thread Juri Pakaste
LS == Lazaro Salem [EMAIL PROTECTED] writes: LS Is there any kind of logical not affecting a flag in find? LS Something similar to the `grep -v regexp' as opposed to `grep LS regexp'. There is. Try find . ! -type d etc. See the section on operators in the gnu find man page. -- Juri

Re: how to exclude a directory from find?

1996-09-12 Thread Guy Maor
On Thu, 12 Sep 1996 [EMAIL PROTECTED] wrote: Certainly it would be nice to have something like: $ find . -type !d to match files which are not directories, but I don't know if something like that is possible for find. So if can take your question and rephrase it: Is there any

how to exclude a directory from find?

1996-09-11 Thread Carlos Carvalho
I'm trying to search for unused files, but I want to exclude a directory from the search. I tried cd /scratch find . -atime +7 -path ./var -prune -o -print but it doesn't work. Any clues? Carlos