[Lemon-devel] sed -i

Barasz Mihaly klao at cs.elte.hu
Tue Oct 7 15:34:45 CEST 2008


On Tue, Oct 07, 2008 at 11:57 +0100, Alpár Jüttner wrote:
> Hi,
> 
> I've just noticed that my sed has an -i option for in place editing.
> Could anyone tell me how standard this option is? Currently, we use a
> workaround for this in all of our source code maintenance scripts.

This option exists in GNU sed since about 2002. But AFAIK it exists only
in GNU sed (which is of course the default on all linux systems...)

Btw, you can always use "perl -i -p -e 's/some/thing/' file" instead of
"sed -i -e 's/some/thing/' file"...

						Misi



More information about the Lemon-devel mailing list