HP NonStop G-Series User Manual
Page 157

LIST Command
EDIT Command Summary
4–78
058061 Tandem Computers Incorporated
3.
The following command lists the line numbers of all lines in which the
string The editor occurs in the range from line number 1000 to the end of
the file:
*LIST SEQ "The editor" RANGE 1000/LAST
1008 1010 1012 1025 1030 1032
1050 1055 1071 1072 1078 1096
1138 1139 1152 1164 1166 1178
1192 1202
*
4.
The following command lists the entire current file to the process
named $S. Text lines are preceded by line numbers:
*LIST OUT $S ALL
*
Listing Text Onto Magnetic Tape
You can write text to a nondisk device, such as magnetic tape, by specifying
a magnetic tape unit for the listfile. When you do this, you should also
specify the UNSEQ parameter. EDIT writes each line as one physical record
on tape; the length of the record is set by the OUTLEN parameter of the SET
command (the default length is 132 bytes). When all lines in the range are
written, EDIT writes an EOF mark on tape.
The following commands write the entire text file, without line numbers, to
a magnetic tape unit. Each line is written as one physical record on tape
containing 130 bytes. Lines containing fewer than 130 characters are
padded with trailing blanks. Characters to the right of column 130 are
written in a subsequent line(s) of 130 bytes (also padded with trailing
blanks if necessary).
*SET OUTLEN 130
*LIST UNSEQ OUT $TAPE ALL
*