I have a replacement string which is captured in a parameter replace_str. The below command with sed for replacement gives bad substitution error :
sed 's/search_str/$replace_str/'
where replace_str has the value with backslash eg: 01/2020
Tried few options like using \
, within double quotes etc .But it did not help . Please let me know if you need more information.
Appreciate your time and help.