EB> Untested, but:
EB> -type d \! -readable -prune
EB> seems like it should do the trick of telling find to not descend into
EB> unreadable directories.
Well, I hope there can be an example added to the find man page.
Anyway, in the general case ... there needs to be a way...
$ chmod 0 jidanni.o
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to jida...@jidanni.org on 9/19/2009 10:16 AM:
> So it's a general
>find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]
> case, but with an added feature,
> -ignore-unreadable-directories
Find can already do that witho
>> It seems there is no way to tell find to look before it leaps,
>>
>> $ find /tmp -user $LOGNAME -type f -mtime +1 -exec rm {} \;
EB> Have you looked at using -ok instead of -exec?
It's a total batch job, -ok not OK, OK?
I'm trying to tell find:
do what you need to do, but if you encounter an
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to jida...@jidanni.org on 9/15/2009 5:16 PM:
> It seems there is no way to tell find to look before it leaps,
>
> $ find /tmp -user $LOGNAME -type f -mtime +1 -exec rm {} \;
Have you looked at using -ok instead of -exec?
- --
Don't work to