Maybe it's because Perl was really popular at the time I discovered Unix and its tool, but why would you use sed and awk instead of a Perl one-liner? (Or even :s// in vim or M-x query-replace-regexp in emacs, if it's just regex munging)
:%!sed …
sed is bullshit.
Do you know it is not actually possible to get output from sed that does not contain a newline?