The dos2unix package provides manipulation utilities for converting the line break characters of text files between the unix convention (0x0a), the DOS/Windows convention (0x0d 0x0a), and the old (pre-OS-X) Mac convention (0x0d).