On Wed, 6 Jul 2005, Matthias Kilian wrote:

> 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.]

That's because you are not doing the same search.  Especially
-maxdepth 1 will influence the results. 

        -Otto

Reply via email to