I am looking for a macintosh program that can find and replace text in a very large text file (7MB). I've tried TextMate, TextEdit and nano (command line) but both take a very long time (I've waited over an hour and still didn't finish). Am I being impatient, or is there a more efficient solution?
2 Answers
My question was solved by AllInOne: Download BBEdit. The time to search and replace went down from 1 hour+ to about five seconds.
I usually use Text Wrangler (the free incarnation of the full featured BBEdit) for working on text files that are too large for other tools.
-
Same thing. BBEdit is the paid version of TextWrangler with a few more features... either of them do not suck.– donlaurCommented Dec 26, 2012 at 19:47
-
1
sed
would be a good alternative for big files but if you need help here please add some examples for strings to be searched and replaced.sed
too, and then I saw the 7MB comment. 7MB is not a large file. I have 1GB+ log files floating around, and even those really aren't that large. My first thought is a poorly optimized regex.