Strange grep output

215 views Asked by At

Shouldn't echo "ab" | grep "[A-B]" return nothing? Strangely it returns ab

LE: Apparently on older versions of Ubuntu (9.10) there's no problem, only 10.10 has this

2

There are 2 answers

2
Navi On

It doesn't return anything on my system.

1
kolko On

Need use grep -i, to ignore case of characters