Dec 252017
Strip white space, and reformat paragraphs – great conversion aid. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
TEXT23.COM | 17447 | 11844 | deflated |
TEXT23.DOC | 1851 | 713 | deflated |
Download File TEXT23.ZIP Here
Contents of the TEXT23.DOC file
TEXT, version 2.3, written by Walter Kennamer 74025,514.
Alters the text within a file as specified in the command line.
USAGE: TEXT -args input output
where 'args' are any combination of the following:
d - delete all white space
l - delete all leading white space on each line
t - delete all trailing white space on each line
r - reduce all white space to a single blank space
u - convert to upper case
s - convert to lower case
q'" - do not alter text within single or double quotes--see example below
Arguments can be preceded by either a hyphen or a slash.
Examples
1) TEXT -tlu input output
deletes all leading and trailing white space and converts to upper case.
If the ouptut file already exists, it will be overwritten.
2) TEXT -ts input output
instructs the program to delete trailing white space and convert to lower case.
3) TEXT -q'u input output
instructs the program to convert all text to upper case except for text within
single quotes.
4) TEXT -q"u input output
instructs the program to convert all text to upper case except for text within
double quotes.
5) TEXT -q'"u input output
instructs the program to convert all text to upper case except for text within
single or double quotes.
Notes
Arguments may be entered in upper or lower case.
Unidentified arguments are ignored.
Instructions are processed in the order listed above, except that 'q'
(quote) affects all other instructions.
At least one argument must always be entered.
Version 2.1 corrects a bug in the version 2.0 "trim leading spaces" function.
Version 2.3 adds additional quote processing option and fixes a bug that
surfaced when quotes were nested (e.g., a quoted string within another
quoted string).
Alters the text within a file as specified in the command line.
USAGE: TEXT -args input output
where 'args' are any combination of the following:
d - delete all white space
l - delete all leading white space on each line
t - delete all trailing white space on each line
r - reduce all white space to a single blank space
u - convert to upper case
s - convert to lower case
q'" - do not alter text within single or double quotes--see example below
Arguments can be preceded by either a hyphen or a slash.
Examples
1) TEXT -tlu input output
deletes all leading and trailing white space and converts to upper case.
If the ouptut file already exists, it will be overwritten.
2) TEXT -ts input output
instructs the program to delete trailing white space and convert to lower case.
3) TEXT -q'u input output
instructs the program to convert all text to upper case except for text within
single quotes.
4) TEXT -q"u input output
instructs the program to convert all text to upper case except for text within
double quotes.
5) TEXT -q'"u input output
instructs the program to convert all text to upper case except for text within
single or double quotes.
Notes
Arguments may be entered in upper or lower case.
Unidentified arguments are ignored.
Instructions are processed in the order listed above, except that 'q'
(quote) affects all other instructions.
At least one argument must always be entered.
Version 2.1 corrects a bug in the version 2.0 "trim leading spaces" function.
Version 2.3 adds additional quote processing option and fixes a bug that
surfaced when quotes were nested (e.g., a quoted string within another
quoted string).
December 25, 2017
Add comments