home *** CD-ROM | disk | FTP | other *** search
- TEXT, version 2.0, 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:
- f - TEXT acts as a filter
- 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
-
- 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 -fts <input >output
-
- instructs the program to work as a filter deleting trailing white space
- and converting to lower case.
-
-
- 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 (in addition to 'f') must always be entered.
-
-
- Filters
-
- If the -f argument is entered, TEXT will act as a filter, taking its
- input from stdin and writing its output to stdout. You will normally want
- to redirect keyboard and console input and output when you select this
- option. For example,
-
- TEXT -fr <input >output
-
- compresses all white space to a single space, writing to 'output.' The
- redirection symbols ( '<' and '>' ) are important. If you do not include
- them before your filenames, TEXT will display an error message. See your
- DOS manual if you are not familiar with filters.
-
- If you use TEXT as a filter, the input file must terminate with a
- <ctrl>Z or TEXT will wait a very long time looking for one. Output
- is guaranteed to terminate with a <ctrl>Z. If you are not sure that
- your input file terminates with a <ctrl>Z, use the MARKEOF program to
- be safe.
-
-
-
-
-