A chronological documentation test project, nothing serious, really!

09 Feb 2007 Convert DOS Carriage Return file to Unix Line feed file

Posted by

tr '\r' '\n' < sourcefile_dos.txt > resultfile_unix.txt

An alternative is to use the program hd2u which is a DOS < –> Unix convertor

dos2unix -U 2006-12.md5

Converts from DOS to Unix, doing a Unix to DOS use the -D switch.

Tags: ,

Comments are closed.