[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] find and replace shell script



> Can anyone suggest a command that I can use in a shell script that will
> help me do a find and replace action on a couple of thousand XML files?
> 
> I need to replace something like http://domain.com/images  with just
> /images and it can occur several times in the same file.
> 
> Unfortunately, due to the nature of XML, many of the files don't contain
> a single carriage return, just one very long line.

Steve Werby mentions this one all the time. It works great and it's easy to
install.

http://www.laffeycomputer.com/rpl.html

HTH,
j