I've alread read this and this question, which led me to:
for f in *.Xml
do
perl -pi.bak -e 's/\x03//g' "$f"
done
rm *.bak
I am using a for loop and I'm using -pi.bak
. I still get Can't do inplace edit on 20180619.Xml: File exists.
. I also tried this from Windows' cmd.exe
instead of from git bash:
for %i in (*.Xml) do perl -pi.bak -e "s/\x03//g" "%i"
Same thing. Any ideas?
Version info:
$ perl --version
This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-msys-thread-multi
I am using the latest version of Windows 10 Pro.