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

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



"Matthew Nuzum" <cobalt@xxxxxxxxxxxxx> wrote:
> 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.

rpl.  laffeycomputing.com.  You can replace a string with another string in
all the files recursively within a directory with a single command.  Enjoy.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/