[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: Nico Meijer <nico.meijer@xxxxxxxxx>
- Date: Fri Apr 5 12:21:29 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi Matt,
> 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?
Try `sed`. Be sure to pipe each parsed file into a new file and then rename the newly created file to the original filename or your files will be lost.
Make backups first... Nico