Date : Tue, 04 Jan 1983 00:32:00-EST
From : Paul L. Kelley <PLK@mit-mc.arpa>
Subject: FIXTEX, a text file utility
The file FIXTEX 10ASM is on MIT-MC in AR21:CPM; It is based
on FILTER and FILTEX by Keith Petersen (W8SDZ at MIT-MC). The assembly
switches allow 32 different operations to be performed on a text file.
The following describes what has been done:
1. Changed to assemble with DRI's ASM,
2. Changed so that if input file is FILENAME.ABC then output file
is FILENAME.XYZ where the XYZ's are determined by assembly
switches or, if renaming is chosen, the output file has
the original file name and type and the input file name
has the file type BAK,
3. Modified so that output file can be on a different drive from
input file,
4. Added routines to output several types of files depending on
assembly time switches, these switches can be set to do
a number of operations (some are mutually exclusive).
All cases pad the last sector with EOFs. The operations
are:
a. leave text unchanged,
b. delete all control characters except CR, LF and TAB,
c. insert LF after each CR if absent,
d. insert CR before each LF if absent,
e. delete extraneous LFs (those not following CR),
f. delete LFs,
g. insert one space on each blank line,
h. delete LFs and insert a space on each blank line,
i. replace TAB with spaces,
j. delete LFs and replace TABs with spaces,
k. replace TABs with spaces and insert a space on each blank line,
l. delete LFs and replace TABs with spaces and insert a space on
each blank line, (canonical bulletin board file),
m. delete any character following ESC,
n. replace more than one space with TABs where possible,
o. replace more than one space with TABs where possible
except in 'qouted' strings, (canonical assembly file),
p. insert a TABs at start of each line,
q. insert an arbitrary number of spaces at start of each line.
Options f, g, h, i, j, k and l may be useful when sending files
to bulletin boards and mainframes. Option m may be useful when capturing
text from mainframes which control your terminal in full screen mode.
Option o can shorten assembly language files. Option a is useful when
CRC(K)ing a file sent or received using ITS LMODEM.