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

Re: Semi-OT: Problems getting find to not recurse



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