Sample Header Ad - 728x90

Replace text quickly in very large file

39 votes
4 answers
88654 views
I have 25GB text file that needs a string replaced on only a few lines. I can use sed successfully but it takes a really long time to run. sed -i 's|old text|new text|g' gigantic_file.sql Is there a quicker way to do this?
Asked by eisaacson (491 rep)
Jan 14, 2016, 07:14 PM
Last activity: Jul 4, 2025, 08:19 AM