Sunday, July 11, 2010

How To Use UNIX/MAC to DOS command?

Use this command to correct the end of line characters for display in UltraEdit and other text editors.

Some documents generated from UNIX-based systems (and some other systems) do not terminate each line with a carriage return and line feed.  UltraEdit requires all lines to be terminated with a carriage return and line feed character. 

This command searches the file for all carriage return and line feed characters.  If a carriage return character is found without an accompanying line feed character, a line feed character is added.  If a line feed character is found without a preceding carriage return character a carriage return character is inserted.  If a line feed is found preceding a carriage return the characters are reversed.

To convert a file to UNIX format, use the DOS to UNIX command.
To convert a file to MAC format, use the DOS to MAC command