In place operations have been implemented as a standalone utility: sponge from moreutils.
sed 's/blah/foo/' file | sponge fileThe irony
s stands for stream
there is no s in ed
Re:Sed(1) one-liners
by silentbicycle on Thursday January 07, 2010 @10:11PM
(#1038723)
I checked - it's pgs. 152-156. They call their utility "overwrite".
"...Many other commands could also use a -o command. For example, sed could edit a file in place: ... It would be impractical to modify all such commands to add the option. Furthermore, it would be bad design: it is better to centralize functions, as the shell does with the > operator."
See "UNIX Style, or cat -v Considered Harmful" by Rob Pike (http://harmful.cat-v.org/cat-v/) for a longer discussion of this.