Find and replace text in a large 47 GB file
I need to find and replace tasks on a fairly large file of about 47 GB in size.
Does anyone know how to do this? I've tried using services like TextCrawler, EditpadLite and more, but nothing supports this large file.
I assume it can be done via the command line.
Do you have any idea how this can be done?
+27
source to share
7 replies
For me, none of the tools suggested here work. Textcrawler ate all the computer memory, SED didn't work at all, Editpad complained about memory ...
Solution: Create your own script in python, perl, or even C ++.
Or use the PowerGrep tool, which is the easiest and fastest option.
I haven't tried farting, it's only command line and maybe not very friendly.
Some hex editors, like Ultraedit, also work well.
0
source to share