Re: [dev] situ — change files in situ
Hey,
On 13 April 2012 14:14, Troels Henriksen <athas_AT_sigkill.dk> wrote:
> Note that you can also exploit shell evaluation order
Of course, that doesn't wait to see whether cmd succeeds.
I wonder whether a situ-like could be used to produce a diff of the
original file, rather than a complete second copy. Programs like sed
don't generally make that many changes, so if we were to connect situ
to the file and the cmd's stdout we could compute the diff and then
patch the original file once cmd exits 0. If someone could get that
working it would be pretty sweet.
Thanks,
cls
Received on Fri Apr 13 2012 - 15:41:09 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 13 2012 - 15:48:07 CEST