In the following file:
semi1245 5465 and taxes ?>:" foo 214 sdnfv 1>?<: Wed
dsfsdf 46 and gsdgsd blah and blah taxes foo 214 sdnfv 1>?<: Wed sadfaads
I want to delete everything after foo
(including foo) from every lines (If the line contains foo) .
My desired output:
semi1245 5465 and taxes ?>:"
dsfsdf 46 and gsdgsd blah and blah taxes