Pejman Moghadam / General

DOS2Unix / Unix2DOS using sed

Public domain


DOS2Unix

sed -i 's/\r//' file.txt

Unix2DOS

sed -i 's/$/\r/' file.txt

BY: Pejman Moghadam
TAG: dos2unix, unix2dos
DATE: 2012-03-28 17:31:03


Pejman Moghadam / General [ TXT ]