bug-grep
[Top][All Lists]
Advanced

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

Re: [bug #27196] Using -o and -i options together is broken


From: Dave B
Subject: Re: [bug #27196] Using -o and -i options together is broken
Date: Fri, 7 Aug 2009 13:03:06 +0100
User-agent: KMail/1.11.2 (Linux/2.6.28-15-generic; KDE/4.2.2; x86_64; ; )

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]