On 13/04/2012, Troels Henriksen <at...@sigkill.dk> wrote: > I wrote a similar program in C: http://sigkill.dk/projects/insitu/ It > also does actual in-replace replacement (which is sometimes not what you > want).
I actually found this prior, but wanted a program that would not harm the file on failure. > Note that you can also exploit shell evaluation order: What cls said.