As others pointed out, sed
may not be the right command. However, if you really want to use sed
and not any other command (awk
might have been a good option) :
printf 'Hello wor=\r\nld\n' | sed -z 's/=\r\n//g'
Use -z
option to handle multi-line matching.
Expected output :
Hello world