gtpo1m6aOperations

ZFILE tee-Duplicate the Output Stream

Use this command to copy standard input (stdin) and write it to both standard output (stdout) and to specified files.

Requirements and Restrictions

Format




-a
appends the specified file rather than overwriting it.

path
is the path name of a file you want to overwrite or append. If multiple path names are specified, the ZFILE tee command will overwrite or append all specified files.

Additional Information

Examples

In the following example, the stdout from the ZFILE ls command is piped to the ZFILE tee command and then printed on the screen. The file named ls.output is overwritten.

+--------------------------------------------------------------------------------+
|User:   ZFILE ls | tee ls.output                                                |
|                                                                                |
|System: FILE0001I 08:14:31 START OF DISPLAY FROM ls | tee ls.output             |
|        dev                                                                     |
|        etc                                                                     |
|        tmp                                                                     |
|        usr                                                                     |
|        END OF DISPLAY                                                          |
+--------------------------------------------------------------------------------+

Related Information

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