| United States-English |
|
|
|
![]() |
Using HP 3000 MPE/iX: Fundamental Skills Tutorial: HP 3000 MPE/iX Computer Systems > Chapter 6 Working with FilesLesson 5 Displaying File Contents |
|
Lesson 5 presents the command to display the contents of text files.
Up to now you have used the editor to see a file, but you can display the contents of a text file on the screen without starting the editor to text in the file and list it. You should be in MYGROUP. To see the contents of DOCUMENT on the screen, use PRINT command this way:
To see only lines 3 through 6 of the file, enter this:
Here is what happens:
What do you suppose the following prints to the screen:
Try it. The last three lines of the file DOCUMENT are printed on the screen. This happens because you specified a minus sign (-) ahead of the number 3, so the instruction becomes: start printing at the third line from the end.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||