bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keep find from trying to spider directories where it has no permissi


From: jidanni
Subject: Re: keep find from trying to spider directories where it has no permission
Date: Sun, 20 Sep 2009 00:16:35 +0800

>> 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 any closed doors, don't
rattle them (simple salesman etiquette), just go on to the next.

I could use 2>&-, but I still want to see any problems.

So it's a general
       find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]
case, but with an added feature,
-ignore-unreadable-directories
that I think I want... you to add to find's functionality.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]