SUNLIST Examples


 

The following are examples of the SUNLIST utility:

Example 1:

SUNLIST MYFILE

 

The file MYFILE.TXT is displayed. Line numbers are listed, and the records are truncated at 72 characters.

Example 2:

SUNLIST MYFILE -X

 

The file MYFILE.TXT is displayed. Line numbers are not listed and the records are truncated at 80 characters.

Example 3:

SUNLIST MYFILE -L

 

The file MYFILE.TXT is listed on the system print device. Line numbers are listed, and the records are truncated at 124 characters. You are prompted for a heading.

Example 4:

SUNLIST MYFILE -LFK

 

The file MYFILE.LST is listed on the system print device. It is printed as a print format file and deleted after completion.

Example 5:

SUNLIST MYFILE -WX

The file MYFILE.TXT is displayed. Lines longer than 80 characters are wrapped to the next line until end of logical record is reached.

Example 6:

SUNLIST PRTFILE -LFC4

Four copies of the file PRTFILE.LST are printed on the system print device. It is printed as a print format file.

Example 7:

SUNLIST NAMEFILE -XA'01FSMITH'A'03XCA'            MS-DOS

 

SUNLIST NAMEFILE -XA\'01FSMITH\'A\'03XCA\'            Linux

 

The file NAMEFILE.AAM is searched to see if the key specifications are met and if any records are found, they are displayed. Line numbers are not displayed and the records are truncated at 80 characters.

Example 8:

SUNLIST ISIFILE -I'ABCDE'      MS-DOS

 

SUNLIST ISIFILE -I\'ABCDE\'      Linux

 

The file ISIFILE.ISI is read key sequentially beginning with the record containing the key "ABCDE". All records displayed on the CRT. Line numbers are displayed and the records are truncated at 72 characters.

Example 9:

set SUNLIST_Z2=lp -c #FILE#

 

sunlist myfile -pz2

 

The file myfile.txt is listed to a print file. The print file (myfile.lst) is then printed by the lp command.

 

 

See Also: SUNLIST, Utilities

 



System Utilities