BLOKEDIT


 

The BLOKEDIT utility copies all or part(s) of one or more text files into a new text file. Instructions may be entered from the keyboard or retrieved from a text file. This utility is useful for rearranging source programs, extracting routines from various programs to create a new program or for rebuilding ASCII data files. BLOKEDIT also provides the option to insert text from the keyboard. The format for the BLOKEDIT command line is:

 

 

BLOKEDIT [{cmdfile}],{output} -[{opts}]

Parameters:
cmdfile
The optional name of the command file from which instructions are retrieved.
output
The required name of the destination text file.
opts
Program options preceded by a hyphen that alter the behavior of the utility as described below.
 

Instructions are entered to the BLOKEDIT utility while positioned on line 24 of the CRT or as retrieved from the {cmdfile}. Valid instructions are as follows:

 

FILENAME

Search for specified input file.

n-m

Copy lines n through m from the input file and write these lines into the output file.

" (double quote)

Enter or exit text mode. Any lines entered between these are considered as input and are written to the output file. These lines start or terminate the text entry only if the '"' is the first and only data on that line. Otherwise, it is considered an invalid command (if not in text entry mode) or is written to the output file.

* (asterisk)

End this BLOKEDIT. Write the EOF on the {output} file and return to the operating system.

. (period)

Comment line in command file.

Note the following:

  1. If {cmdfile} is specified, it must be an ASCII text format file that contains the instructions for this particular BLOKEDIT procedure.

  2. If {cmdfile} is not specified, all instructions for this particular BLOKEDIT procedure must be entered from the terminal keyboard.

  3. The assumed file type (extension) on both files is TXT.

  4. If {output} already exists and {option} was not specified, the following prompt is displayed:

    OUTPUT FILE ALREADY EXISTS. OVERWRITE IT (Y/N) ?

    Any response other than 'Y' aborts the BLOKEDIT utility.

  5. A search of all search paths is performed in an attempt to locate the specified files. If {output} is not found, it is created in the current directory.

  6. {option} is not required and if specified must be as follows:

  7. C

    Compressed output file.

    N

    Uncompressed output file (default).

    O

    Overwrite {output} if it already exists.

    ?

    Display the BLOKEDIT help information.

 

 

See Also: BLOKEDIT Examples, BLOKEDIT Messages, Utilities

 



System Utilities Distribution BUILD