gtpo1m69Operations

ZFILE tail-Write from the End of a File

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

Requirements and Restrictions

Format




-cnumchar
writes characters from the end of a file to the standard output (stdout) stream, where numchar is the number of characters you want to write.

-nnumline
writes lines from the end 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 last four records of test.file are displayed.

+--------------------------------------------------------------------------------+
|User:   ZFILE tail -n4 test.file                                                |
|                                                                                |
|System: FILE0001I 15:31:22 START OF DISPLAY FROM tail -n4 test.file             |
|        <TITLE>This is a test</TITLE>                                           |
|        </HEAD><BODY>                                                           |
|        <B>Test</B>                                                             |
|        </BODY></HTML>                                                          |
|        END OF DISPLAY                                                          |
+--------------------------------------------------------------------------------+

Related Information

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