I have a varibale TMP have string and I am using that string to be replaced using sed command to null.
TMP variable has string like this "dec$|fgh$|yxz$" and I am using this command
example.txt file contains string like this hello dec$|fgh$|yxz$
sed -i "s/hello \"$TMP\"//g" /example.txt
But this command is not replacing?