DOS2Unix / Unix2DOS using sed Written by vaheeD on December 28, 2012 5.00 avg. rating (94% score) - 1 vote DOS2Unix sed -i 's/\r//' file.txt Unix2DOS sed -i 's/$/\r/' file.txt 5.00 avg. rating (94% score) - 1 vote