A small free-distributed UNIX (LINUX) and DOS (MS Windows) program,
that analyses and converts end line notations of text files
adopted for these systems.
The end line format conventions of DOS (and today's MS Windows)
operating systems
are known to be different from that of the UNIX world
(today dominated by Linux). Before ordinary
\n (the line feed) symbol they incert additional \r (carriage return)
symbol. While some text editors both from Unix and Windows understand
correctly this difference and treat files correctly,
some difficulties nevertheless appear at handling alien files in both types of
systems.
The command
chendl is one of the programs that can be used to solve these problems.
The command
chendl
is a simple mean to check which is the current state of the file
and to convert it to one or another direction.
At convertion to Windows it adds \r before each \n,
before which there was no \r previously.
At conversion to Unix it removes one \r before each \n,
before which it finds it.
In the case of more than one \r before \n
it removes one and only one \r before \n.
Note that while it prints on screen that file will be rewritten to UNIX,
previous \r's can remain.
To check this you can run "chendl -t" again to check the new state
and run "chendl -u" to remove previous \r's.