Shouldn't echo "ab" | grep "[A-B]"
return nothing? Strangel开发者_运维问答y it returns ab
LE: Apparently on older versions of Ubuntu (9.10) there's no problem, only 10.10 has this
It doesn't return anything on my system.
Need use grep -i, to ignore case of characters
精彩评论