[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Semi-OT: Problems getting find to not recurse
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Semi-OT: Problems getting find to not recurse
- From: Matthias Kilian <kili_(_at_)_outback_(_dot_)_escape_(_dot_)_de>
- Date: Wed, 6 Jul 2005 22:19:33 +0200
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
On Wed, Jul 06, 2005 at 02:33:30PM -0500, C. Bensend wrote:
> > find /path/to/dir -name .ssh -type d -prune -or \
> > -type f -name \*.gz -mtime ${RETAIN} -exec rm {} \;
>
> Thank you very much, Otto. That works just fine. It's greatly
> appreciated!
Well, even if it helped, I can't reproduce your problem:
find /home/kili -maxdepth 1 -type f -name \* -mtime +1 -exec echo {} \; |
grep ssh
yields no output at all. [And of course, I *do* have a .ssh directory.]
Ciao,
Kili
Visit your host, monkey.org