I'm stumped writing a regex to put into grep to match all lines which contain foo_bar and all other lines to don't contain foo_.* (Excepting foo_bar which should still match).
So given:
foo_bar Line 1
foo_baz Line 2
Line 3
foo_biz Line 4
I'd want Lines 1 and 3 returned.
Note I can't just match not foo_baz and not foo_biz as baz and biz can be many, many things. It needs to be foo_.*