How to delete all lines which contain a word with TextWrangler?
Most graphical programmer's editors do not allow you to delete lines like this, but only change their contents. This can be done by replacing ^.*Foo.*$
with nothing.
If you're willing to look towards an external tool then this can be done by filtering through sed "/Foo/d"
.
In TextWrangler: Text > Process Lines Containing…