First of all, sorry if it is duplicated but I am a totally newbie on Sed. I was assigned to investigate an error log but after fixing it based on some tutorials my problem is still not solved.
Here is the original code:
@sed.exe -i "s/\(.*CONFIG_PROJECT_SW_DATE_VERSION=\"\).*\(\"\)/\1%date:~2,2%%date:~5,2%%date:~8,2%\2/g/" .\ghsproj_du2_avc_src.gpj
after running, I received the following error:
03-27 13:22:43 sed.exe: -e expression #1, char 53: unknown option to `s'
03-27 13:22:43 Could Not Find C:\jenkins-slave\workspace\project\work\build\ghs\sed*
I have read some solutions like remove the blank space between -i and s command or enter a "/" at the end but nothing works so far.
P/S: I ran this on Windows 10 environment.