[lug] Find Command

Hugh Brown hugh at vecna.com
Wed Sep 5 19:51:42 MDT 2001


That's interesting, I only got the second listing with the -o.  Putting
everything in escaped parantheses is what did it for me.

Hugh

"John Karns"
> 
>    find /usr -iname ".*read*" -o -iname "*read*"
> 
> Adding the "-o" does it for me
> 
> ----------------------------------------------------------------
> John Karns                                        jkarns at csd.net
> 
> 
> On Wed, 5 Sep 2001, Hugh Brown said:
> 
> > Darn good question.  I was playing around with it and can't seem to get it
> > to do both.
> >
> > If you do the first iname by itself it lists all the .*read* just fine,
> > ditto for the second by itself, but -o'ing them together just gives the
> > second item listed.  It seems like the shell regex that is passed to iname
> > needs to take care of the or'ing of the patterns.
> >



More information about the LUG mailing list