What is Tofrodos?
Tofrodos is a text file conversion utility that converts ASCII and Unicode UTF-8 files between the MSDOS (or Windows) format, which traditionally have CR/LF (carriage return/line feed) pairs as their new line delimiters, and the Unix format, which usually have LFs (line feeds) to terminate each line.
It is a useful utility to have around when you have to convert files between MSDOS (or Windows) and Unix/Linux/BSD (and her clones and variants). It comes standard with a number of systems and is often found on the system as “todos”, “fromdos”, “dos2unix” and “unix2dos”.
源文档 http://www.thefreecountry.com/tofrodos/index.shtml
tofrodos Ver 1.7.8 Converts text files between DOS and Unix formats.
Copyright 1996-2008 by Christopher Heng. All rights reserved.
Usage: fromdos [options] [file…]
Usage: todos [options] [file…]
$sudo apt-get install tofrodos