0

I have a string

str="this is 'the string' example"

I want to replace special character ' character with a special charecter \" character. And finally

str= "this is \"the string\" example" 
  • 1
    Possible duplicate? https://stackoverflow.com/questions/2871181/replacing-some-characters-in-a-string-with-another-character – D. Mika Jan 07 '19 at 09:48
  • Possible duplicate of [Replace one substring for another string in shell script](https://stackoverflow.com/questions/13210880/replace-one-substring-for-another-string-in-shell-script) – xxxvodnikxxx Jan 07 '19 at 10:10
  • Some clues as well in https://stackoverflow.com/questions/13210880/replace-one-substring-for-another-string-in-shell-script – xxxvodnikxxx Jan 07 '19 at 10:10

0 Answers0