[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] find and replace shell script
- Subject: Re: [cobalt-developers] find and replace shell script
- From: Jay Summers <jay@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed Apr 3 11:04:17 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
> 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