I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns -— is there a way to do this without using another file?
Let's say I want to filter out all the lines containing "foo:"foo: for example...