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
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
} #!/
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
> #!/
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
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: "
5 matches
Mail list logo