Contents of the FIX_ENDS.DOC file
Version 1.3, January 3, 1990
Usage: fix_ends filename.ext [-X] [-L] [-C] [-W]
Output to filename.$$$
-X bypasses displays -W leaves white space
-L terminates with LF -C terminates with CR
(switches may be combined, e.g., -XCW)
Removes white space at ends of lines, terminates lines
with pairs, unless overridden with -L or -C,
corrects pairs to be .
c1990 EEmergent Consulting, Box 149, Acton, CA 93510
(Unpublished work, limited license granted to user)
The program 'fix_ends' repairs files that have non-standard line terminations,
seemingly common in transfer operations from alien operating systems and some
editors. It was inspired by DELTA's need for standard ends as evidenced by
its use on some files brought in by Apple File Exchange. With version 1.3
was added the ability to specify line terminations of just CR or LF.
It also removes 'white-space' from the ends of lines, i.e., space and tab
characters that are just before the line termination. With version 1.3 was
added the ability to suppress the elimination of white space.
If invoked with no arguments, the info-box shown above will be displayed.
If the file cannot be found, or some other error occurs, an error box will be
displayed. If successful, the output is in filename.$$$, and you can do with
it as you like (I didn't think it would be appropriate to mess up the original
file). Current line and status are shown during operation, unless the -x
option is chosen (see info-box). The -x operation would be appropriate for
If you don't like long names for utilities, a batch file is provided allowing
the invocation of fix_ends by merely using the abbreviation fe.
Questions and comments can be directed to me at the above address, or on
CompuServe at 75076,2552. The primary tools for fix_ends were Turbo C++
(Borland) and CSCAPE (Oakland). The delivered EXE file has been compressed
with LXEXE, a program by Fabrice BELLARD (48%). -- Mark Gardner