vaheeD khoshnouD

linux, mikrotik, macosx

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

Posted Under: Linux, Macosx

About vaheeD

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected by WP Anti Spam