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

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -