[plug] Find and Replace in multiple files

Jeremy Malcolm Jeremy at Malcolm.id.au
Sat Jul 12 16:18:34 WST 2003


On Sat, 12 Jul 2003 07:24:36 +0000, Weirdo wrote:

> Recently my Dad had to replace a string in about 150 source files. He is a 
> windoz user and was trying to use wgrep. In the end he did it with lots of 
> difficulty. I was wondering if someone could give me a simpler solution for 
> future reference. He has access to my Linux server that is running smb.
> The files would be in some directory like 
> ~/DW/DW_Something/Programming/Project/Source/
> He would have an input string "!***" and a replace string "!*->"
> It needs to be ether a shell command or a script where the input and 
> replace strings are set at the top or somewhere easy to find.

I use this script

http://worldcommunity.com/opensource/utilities/search_and_replace.html

-- 
JEREMY MALCOLM <Jeremy at Malcolm.id.au> Personal: http://www.malcolm.id.au
Providing online networks of Australian lawyers (http://www.ilaw.com.au)
and Linux experts (http://www.linuxconsultants.com.au) for instant help!
Disclaimer: http://www.terminus.net.au/disclaimer.html. GPG key: finger.



More information about the plug mailing list