gtpo1m5vOperations

ZFILE head-Write from the Beginning of a File

Use this command to write a specified number of records from the beginning of a file to the standard output (stdout) stream.

Requirements and Restrictions

Format




-nnumline
writes lines from the beginning of a file to the standard output (stdout) stream, where numline is the number of lines you want to write.

path
is the path name of the file whose contents you are writing to the standard output (stdout) stream.

Additional Information

Examples

In the following example, the first four records of test.html are displayed.

+--------------------------------------------------------------------------------+
|User:   ZFILE head -n4 test.html                                                |
|                                                                                |
|System: FILE0001I 15:31:22 START OF DISPLAY FROM head -n4 test.html             |
|        <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">                      |
|        <HTML><HEAD>                                                            |
|        <TITLE>This is a test</TITLE>                                           |
|        </HEAD><BODY>                                                           |
|        END OF DISPLAY                                                          |
+--------------------------------------------------------------------------------+

Related Information

See Information Technology--Portable Operating System Interface for Computer Environments (POSIX) for more information about the POSIX standards.