I've got this piece of sed code from a bash script, which works great on some versions of sed, and on others it gives errors:
sed "/include \"i-lines.conf\"\;/ainclude \"$SNC\"\;" < file.conf > file.conf.tmp
inside file.conf, there is a line with:
and after that line, sed should add this line there:
like I said, it works fine on some sed versions, but on others I get this:
sed: -e expression #1, char 28: Extra characters after command
how can I make this work on all sed versions?