One Day One GNU/Linux Command
=============================
dos2unix -- DOS/MAC to UNIX text file format converter.
Summary:
Each OS will indicate the End of Line (EoL) with a Line Feed (LF,10)
and/or Carriage Return (CR,13). So after transferring a file from DOS
to Linux, we have to convert the EoL from DOS format to Linux format.
EoL in Unix is LF, in Windoz/DOS is CR/LF and in MacOS is CR.
dos2unix will convert the DOS/MAC Text file to Unix ASCII format.
Examples:
$ dos2unix dos.txt -- Convert and replace dos.txt.
$ dos2unix -n dos.txt gnu.txt -- Convert dos.txt and write into
gnu.txt
$ dos2unix -k dos.txt -- Convert and replace dos.txt while keeping
original date stamp.
$ dos2unix -c mac mac.txt -- Convert and replace mac.txt from Mac to
ASCII format.
Read: man dos2unix
HTH :)
--
Bharathi S
_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc