The above sed command is working for other string but not for the above sting.
in old_string \‘self’\ will vary each time, ex: \'self’\, \\\‘self’\\\. The \ can be any number of times it wary each time.
Hi.
i tried in vain as You did. but could help this construct?:
cat filename.txt # see the content
in old_string .self.\ will vary each time, ex: 'self., \.self.\. The \ can be a
2
in old_string .self.\ will vary each time, ex: 'self., \.self.\ZZ
cat filename.txt | tr -d '' # tr is “translate character”
tr: Warning: Rückschrägstrich () ohne Fluchtzeichen am Ende der Zeichenkette ist nicht portabel
in old_string .self. will vary each time, ex: 'self., .self… The can be a
2
in old_string .self. will vary each time, ex: 'self., .self.ZZ
despite of the warning i got rid of all slashes
oops. my original file content multiple slashes
in old_string .self.\ will vary each time, ex: 'self., \.self.\. The \ can be a
2
in old_string .self.\ will vary each time, ex: 'self., \.self.\ZZ