The Dos2unix package includes utilities 'dos2unix' and 'unix2dos' to convert plain text files in DOS or MAC format to UNIX format and vice versa. You probably want unix2dos: $ man unix2dosĭos2unix - DOS/MAC to UNIX and vice versa text file format converterĭos2unix