[thelist] Fastest Search and Replace

Tim Parkin tim at pollenation.net
Fri Jul 19 13:33:01 CDT 2002


At 10:20 AM 7/19/2002, Joshua Olson wrote:
<snip>I have some files that need text changed.  The files are a few
dozen megs a piece and the item to be replaced is on every line.  Does
anybody know of some fast utilities for doing a search and replace of
this magnitude?</snip>

Find and grep

Eg http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm

And then sed

Eg http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html

Fastest you'll ever get..

Tim






More information about the thelist mailing list