I use sed
on Windows (actually under GitBash) and this approach doesn't work.
$ sed -ibak 's/a/b/g' test1
sed: preserving permissions for `./sed004224': Permission denied
Is there any another approach to do this (or maybe fix this)?
(I know about using perl, and we can move a result file to replace source one.)
UPD 1 It works when I run GitBush "as Administrator". Actually logged Windows user is Admin too.