On Friday 07 August 2009 00:52:01 anonymous wrote: > Hi, > > Using -i with -o produces unexpected results. > > testfile contains: > Bonjour le monde. > Hello world. > Bonjour le monde. > > But the command: > grep -o -i HELLO testfile > produces no output. > > If I specify the pattern in all lowercase (grep -o -i hello testfile), I > get the expected result: > Hello
It works for me with GNU grep 2.5.3. $ echo 'Bonjour le monde. Hello world. Bonjour le monde.' | grep -o -i HELLO Hello -- D.
