Dec 132017
Repair files with non-standard line terminations - CR/LF, CR only, or LF only.
File FXND13.ZIP from The Programmer’s Corner in
Category Word Processors
Repair files with non-standard line terminations – CR/LF, CR only, or LF only.
File Name File Size Zip Size Zip Type
FE.BAT 26 26 stored
FIX_ENDS.DOC 2972 1151 deflated
FIX_ENDS.EXE 68682 66659 deflated

Download File FXND13.ZIP Here

Contents of the FIX_ENDS.DOC file

fix_ends info

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
batch operation.

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

 December 13, 2017  Add comments

Leave a Reply