style change and slight semantics change for inline sed code