How can I convert a DOS/Windows text file to a Unix text file?

How can I convert a DOS/Windows text file to a Unix text file?

dos2unix <dosformatfile> <unixformatfile>


unix2dos <unixformatfile> <dosformatfile>


The former removes the ^M and ^Z characters and the latter adds them.
See man dos2unix and man unix2dos for details.





Home
FAQ