0
I am trying to replace a string with special characters like " &,*,@" etc. This should be done without using escape sequence. I am using sed but it is not working without escape sequence. I am in a situation to pass the new string dynamically. Kindly suggest on this.
sed -e 's/567890/csaf&dsac/g' /test.txt > output.txt.
My Output: csaf567890dsac
Expected Output:csaf&dsac
Thank You, Karthick
2Why should it work without escaping? – Paul – 2015-10-29T12:40:46.140
1use
perl -pe 's/567890/csaf&dsac/g' /test.txt > output.txt
– sureshraju – 2015-10-29T19:25:21.060