I am struggling to replace a string with a special character. I am using the command below and I tried to escape each special character, but I am still getting an error.
If I don't use special characters, the query is working fine, but I have to use special characters.
String to find: ../../../profileone
String to Replace: @mysettings/future-system-one
Query:
sed -i s/"../../../profileone"/"@mysettings/future-system-one"/g *.fileExtension'
I wanted to try this command from jenkins pipeline.