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: Eric Blake
Subject: Re: keep find from trying to spider directories where it has no permission
Date: Sat, 19 Sep 2009 10:02:15 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to address@hidden 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 too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkq1AIYACgkQ84KuGfSFAYBVqwCghwhrQGM2jF1YtJjLZSeHHI3c
omsAoJbk1fW9ldPF68kK5idzVC1sZEZ5
=yMpt
-----END PGP SIGNATURE-----




reply via email to

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