4TEXTIN - Text File Processing Utility

This utility allows you to process a text file and issue an OS/2 command for
every line of data in the file.  Within each line, the data is delimited by
blanks.  The first piece of data is referenced as %1, the second as %2, and
so on.   

For example, let's assume that you had a text file called bulls.txt with the 
following information:

Michael Jordan MJORDAN
John Paxson JPAXSON
Scottie Pippen SPIPPEN
B.J. Armstrong BARMSTR

You could send a network message to each one with the following command:

 4textin bull.txt NET SEND %3 Hey %1, how about winning another championship?

will issue the following commands:
 
 NET SEND MJORDAN Hey, Michael, how about winning another championship?
 NET SEND JPAXSON Hey, John, how about winning another championship?
 NET SEND SPIPPEN Hey, Scottie, how about winning another championship?
 NET SEND BARMSTR Hey, B.J., how about winning another championship?

4TEXTIN will issue the NET SEND command for each line of text in the file,
replacing the different parameters with the corresponding data in the file.
If you're not sure what the command will do before you issue it, use the -v
option before the filename.  It will print the commands to the screen without
sending them to the OS/2 command processor.

Any ideas for improvement?  Send me mail on CompuServe.

Joel Suchomel

=================== Utility Usage Statement ===============================

Typing 4TEXTIN with no paramters will print this on the screen:


USAGE:  4textin [-ev] <text file> <command>

        <text file>  - REQUIRED - any text file
        <command>    - REQUIRED - any OS/2 command (may contain %1 - %9)

                  %1  Replace this with 1st column data from text file
                  %2  Replace this with 2nd column data from text file
                  %3  Replace this with 3rd column data from text file
                  ..      .     .    .   .     .     .     .    .    .
                  ..      .     .    .   .     .     .     .    .    .
                  %9  Replace this with 9th column data from text file

        OPTIONS:  -e  Echo   - Show commands as they execute
        OPTIONS:  -v  Verify - Show commands processed in text form only


