I downloaded sed.exe
from GnuWin32 and tried to use it in my batch script. However, sed
returns a different string than what I expected.
I tried to use a different delimiter and using the -b
flag, but nothing happened.
My batch script:
@echo off
set "scriptDir=%~dp0"
"%scriptDir%sedsed.exe" "s|Windows XP (x64, cloud).vmdk|%scriptDir%Windows XP (x64, cloud).vmdk|" "Windows XP (x64, cloud).vmx"
What I expect to be written in the changed line: scsi0:0.fileName = "C:UsersMaksioOneDriveWindows XP (x64)Windows XP (x64, cloud).vmdk"
What is actually written: scsi0:0.fileName = "C:SERSMAKSIOONEDRIVEWINDOWS XP (X64)WINDOWS XP (X64, CLOUD).VMDK"
magnificent papyrus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.