Very simply I have a file that has \\r\\n at every line break.
aaaa\\r\\nbbbb\\r\\ncccc
I would like to remove the \\r character while leav
You should be able to do it with sed like this:
sed
sed 's/\r//g' orig.txt > modified.txt
In case you are using the terminal on a mac, use this instead to be able to recognize \r
\r
sed "s/$(printf '\r')\$//" orig.txt > modified.txt