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
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
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,
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
[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
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
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
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
8 matches
Mail list logo