regex - How to remove \r character with sed -
very have file has \r\n @ every line break.
aaaa\r\nbbbb\r\ncccc i remove \r character while leaving \n in place.
i in python seems more elegant simple sed command. possible? expression trick? can't seem find such solution online.
thank you
you should able sed this:
sed 's/\r//g' orig.txt > modified.txt
Comments
Post a Comment