在47GB大文件中查找和替换文本 [英] Find and replace text in a 47GB large file
本文介绍了在47GB大文件中查找和替换文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须在一个相当大的文件上执行一些查找和替换任务,大小约为47 GB。
I have to do some find and replace tasks on a rather big file , about 47 GB in size .
有人知道怎么做吗?我尝试使用像TextCrawler,EditpadLite等服务,但没有什么支持这个大的文件。
Does anybody know how to do this ? I tried using services like TextCrawler , EditpadLite and more but nothing supports this large a file .
我假设这可以通过命令行来完成。
I'm assuming this can be done via the commandline .
你有一个想法如何完成这个?
Do you have an idea how this can be accomplished ?
推荐答案
Sed < a>(用于过滤和转换文本的流编辑器)是您的朋友。
Sed (stream editor for filtering and transforming text) is your friend.
Sed单次执行文字转换。
Sed performs text transformations in a single pass.
这篇关于在47GB大文件中查找和替换文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文