Re: find/replace in place

2005-12-26 Thread sachidananda urs
use sed -i s/foo/bar/ filename. this will do the replacement in place, without any extra steps. regards, sac. On 12/20/05, Gregory Seidman <[EMAIL PROTECTED]> wrote: > On Mon, Dec 19, 2005 at 03:38:23PM -0500, Tony Heal wrote: > } I have a database name I want to replace inside of an xml file. I

Re: find/replace in place

2005-12-19 Thread Gregory Seidman
On Mon, Dec 19, 2005 at 03:38:23PM -0500, Tony Heal wrote: } I have a database name I want to replace inside of an xml file. I can do } this in several step using sed, but I would like to do it in a single step } using perl. This is what I have in sed and what does not work in perl. } } SED } #!/

Re: find/replace in place

2005-12-19 Thread Almut Behrens
On Mon, Dec 19, 2005 at 03:38:23PM -0500, Tony Heal wrote: > I have a database name I want to replace inside of an xml file. I can do > this in several step using sed, but I would like to do it in a single step > using perl. This is what I have in sed and what does not work in perl. > > SED > #!/

Re: find/replace in place

2005-12-19 Thread Michael Marsh
On 12/19/05, Tony Heal <[EMAIL PROTECTED]> wrote: > I have a database name I want to replace inside of an xml file. I can do > this in several step using sed, but I would like to do it in a single step > using perl. This is what I have in sed and what does not work in perl. [...] > PERL (single lin

find/replace in place

2005-12-19 Thread Tony Heal
I have a database name I want to replace inside of an xml file. I can do this in several step using sed, but I would like to do it in a single step using perl. This is what I have in sed and what does not work in perl.     SED #!/bin/bash echo -n "Please enter the name of the new database: "