I am trying to replace a string that contains CR and LF in the text of a file.
So the input file
abcd
efgh
ijkl
Becomes
abcd
zxgh
ijkl
literally I wish the string "cd + CR + LF + ef" to be replaced with "cd + CR + LF + zx". I have tried
sed -e 's/cd\red/cd\rzx/g' file
sed -e 's/cd\r\ned/cd\r\nzx/g' file
without success