gtpo1m5lOperations

ZFILE cat-Concatenate and Write Files

Use this command to concatenate files and write the contents to the standard output (stdout) stream.

Requirements and Restrictions

Format




-u
writes each byte without a delay; that is, it does not use buffered input/output (I/O).

path
is the path name of the file whose contents are to be concatenated and written to the standard output (stdout) stream.

Additional Information

Examples

In the following example, the contents of test.file and next.file are concatenated and displayed.

+--------------------------------------------------------------------------------+
|User:   ZFILE cat test.file next.file                                           |
|                                                                                |
|System: FILE0001I 13:11:31 START OF DISPLAY FROM cat test.file next.file        |
|        abc                                                                     |
|        def                                                                     |
|        END OF DISPLAY                                                          |
+--------------------------------------------------------------------------------+

In the following example, the contents of my.file and your.file are concatenated and written to a new file called our.file.

+---------------------------------------------------------------------------------------------+
|User:   ZFILE cat my.file your.file > our.file                                               |
|                                                                                             |
|System: FILE0003I 14:05:55 cat my.file... COMPLETED SUCCESSFULLY.  NO OUTPUT TO DISPLAY      |
+---------------------------------------------------------------------------------------------+

Related Information

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