sed: missing LF

Thomas Necker Thomas.Necker at marconi.com
Wed Feb 28 16:30:18 UTC 2007


I have the following file test.cfg:

ADDRESS=
NETMASK=
GATEWAY=

When I issue the command

sed "/^ADDRESS/c\ADDRESS=1.2.3.4"

I get

ADDRESS=1.2.3.4NETMASK=
GATEWAY=

instead of

ADDRESS=1.2.3.4
NETMASK=
GATEWAY=

So, a LF is missing. I'm using Busybox 1.4.0. It worked with 1.0.

Thomas



More information about the busybox mailing list