[BusyBox] busybox sed with multi command

Stelarinc stelarinc at yahoo.com
Fri Dec 5 03:17:57 UTC 2003


Hi list,

Using busybox's sed, I can't do a multiple sed
command.  For example, in a file a.txt that contains:
ABC=AAA
DEF=BBB

When I do cat a.txt | sed -e "/^ABC *=/s%=.*%=CCC" -e
"/^DEF *=/s%=.*%=DDD"

It returns just DEF=DDD.  But when I do it using the
gnu sed, it returns:
ABC=CCC
DEF=DDD

Please tell me if you need any more info, because I'm
new to busybox.

Thanks :)

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/



More information about the busybox mailing list