cr1
Converts text files between nix eol and dos eol
Usage
cr {- | +
<input
file>
<output
file>}
Overview
Text files, such as tle files, that come from a dos source usualy have the ^M symbol at the end of every line. Cr converts files between the dos newline format and the normal *nix newline format by stripping the ^M to convert dos to *nix, using the '-' option, or adding ^M to a *nix file to create the proper dos file when the '+' option is used.
Although this extra character is not often a problem, programs like seesat5, which are data driven will encounter parsing problems when the extra character is present. It is these problems that cr is intended to repair.
Options
- - | +
-
One or the other of these options is required. The '-' option is used to remove ^M from all newlines found in the dos file. The '+' option is used to add ^M to every newline found in a *nix file.
- input file
-
Fully delineated path to the input file. As this program is used in the dos environment as well, standard input is not used.
- output file
-
Fully delineated path to the output file. As this program is used in the dos environment as well, standart output is not used.
Releases
12 releases since Debian 1.1 (Buzz); the text changed 2 times.