How do you use grep to do a text file search for a pattern like ABC='123'?
I'm currently using:
grep -rnwi some/path -e "ABC\s*=\s*[\'\"][^\'\"]+[\'\"]" but this only finds text like ABC="123". It misses any instances that use single-quotes. What's wrong with my regex?
\+or use the current regex with-Eoption to use ERE+is not in BRE at all, but GNU grep BRE supports it as an extension.-rI presumed GNU grep