The man page doesn't give me much hope, but I'm hoping it's an undocumented (and/or GNU-specific) feature.
|
|
||||
|
|
|
You can't. Either use ed or GNU sed or perl, or do what they do behind the scenes, which is to create a new file for the contents.
GNU
Perl:
I recommend using one of the |
|||
|
|
|
I don't think that is possible using
|
|||
|
|
|
The moreutils package from ubuntu (and also debian) has a program called From man sponge:
Which would let you do something like:
|
||||
|
|