cfunix2dos.exe and cfdos2unix.exe Utilities

You can use the cfunix2dos.exe utility to convert a text file from UNIX format to DOS format; and, you can use the cfdos2unix.exe utility to convert a text file from DOS format to UNIX format.

cfunix2dos.exe Utility

Use the cfunix2dos.exe utility to convert LF to CRLF characters. As a result, you can send the file to Windows in binary format.

When using the ./cfunix2dos.exe utility, the format is:

./cfunix2dos.exe filename

Example of cfunix2dos.exe Utility

See the following example of the utility in use and the output:

./cfunix2dos.exe /usr/tmp/file.txt
   cfunix2dos complete for file ==> /usr/tmp/file.txt
   Input  bytes=3074
   Output bytes=3131

cfdos2unix.exe Utility

Use the cfdos2unix.exe utility to convert CRLF to LF characters. As a result, you can send the file to Windows in binary format.

When using the ./cfdos2unix.exe utility, the format is:

./cfdos2unix.exe filename

Example of cfdos2unix.exe Utility

See the following example of the utility in use and the output:

./cfdos2unix.exe /usr/tmp/file.txt
   cfdos2unix complete for file ==> /usr/tmp/file.txt
   Input  bytes=3131
   Output bytes=3074