-1

I want to make replace a string in a file mytest.properties but it is not getting replaced.

I want to replace JaWov5Svh/GKAkk8siezbg== and use the command

$ sed -i -- 's/JaWov5Svh/GKAkk8siezbg==/abjhdgetsjsu/d' mytest.properties

but the string does not get replaced as expected.

Bex
  • 768
Chintan
  • 49

1 Answers1

2

You have a / in the text you are trying to replace, but you are also using / as a sed "divider".

Try the following instead:

sed -i 's@JaWov5Svh/GKAkk8siezbg==@abjhdgetsjsu@' mytest.properties
Bex
  • 768