Wednesday, February 2, 2011

2) Solution for ^M characters


If you deal with DOS files and the "^M" character always appears at the end of the line, here is a command
provided in SCO-UNIX.

dtox -- change file format from MS-DOS to UNIX

From a Unix shell use the command:
$dtox filename > output.file

Other flavers have similar commands: dos2unix or to_unix

$dos2unix filename output.file

Check your man pages ont he flavor you use. If you have whatis set up. Use a

$man -k dos

No comments:

Post a Comment