Sample Header Ad - 728x90

Is there a way to modify a file in-place?

66 votes
11 answers
34238 views
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: for example...
Asked by Nim (1003 rep)
Apr 11, 2011, 09:53 AM
Last activity: Dec 22, 2022, 07:20 PM