Re: Small mystery with grep -o -i

2024-01-24 Thread Lloyd Parkes
Kia ora koutou katoa, On Wed, 2024-01-24 at 22:13 +0100, Rhialto wrote: > T.. > he CHANGES file from upstream > https://git.savannah.gnu.org/git/grep.git > lists: > > ... > > related to commit 70e236167c3973fc428d2b5b297218fde9b68e73, committed > 2010-03-17 And the source browser is at.

Small mystery with grep -o -i

2024-01-24 Thread Rhialto
I came across a configure script that used this test: echo 'alma,korte,banan' | grep -oEia ',K[^,]+,' and expected the result to be ,korte, That looks fine: -o prints only the matching part from the line -E selects egrep syntax, which allows the + operator -i makes it