[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] find and replace shell script
- Subject: [cobalt-developers] find and replace shell script
 
- From: "Matthew Nuzum" <cobalt@xxxxxxxxxxxxx>
 
- Date: Wed Apr  3 02:04:02 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.
Thanks,
Matt