[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: "C. Bensend" <benny_(_at_)_bennyvision_(_dot_)_com>
- Date: Wed, 6 Jul 2005 14:33:30 -0500 (CDT)
> Something like this should work (compare some of th examples of the man
> page):
>
> 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!
Benny
--
"I'd rather staple a skunk to my forehead and go to a trade show
for banjo makers." -- PHB's secretary,
Dilbert, 07-2002
Visit your host, monkey.org