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

Re: using the 'find' program




On Mon, Sep 05, 2005 at 04:42:09PM -0400, Stephen R Laniel wrote......

> On Mon, Sep 05, 2005 at 11:56:52AM -0600, Bob Proulx wrote:
> > > find: warning: Unix filenames usually don't contain slashes
> > > (though pathnames do).  That means that '-iname /tmp' will
> > > probably evaluate
> [snip]
> > The results you post look like there is a bug in the option
> > processing of find.
> 
> I think the original poster just made a mistake and did
> 
> find . -iname /tmp
> 
> rather than
> 
> find /tmp -iname 'whateverHeWasLookingFor'
> 
> When I type 'find . -iname /tmp', I get the same error that the
> original poster included.
> 
> Adhering to Ockham's Razor as we do, I think the simplest
> explanation consistent with the facts is 'the OP made a typo.' :-)


Well, it's rather embarrassing to admit, but better to confess than
waste anyone else's time in trying to help me.  Upon further
investigation I found an old alias in the .bashrc that was named
'find' and was screwing things up.  Removing the alias gave me the
correct, and predictable, behaviour of the true 'find' program.
Thanks for the tips though and I did learn some new tricks.

Kevin



-- 



Reply to: