Mercurial > hg > Members > kono > nitros9-code
diff docs/nitros9guide/tee.refentry @ 138:d9631713b7cd
Split up the commands into individual files.
author | roug |
---|---|
date | Sun, 07 Jul 2002 08:58:56 +0000 |
parents | |
children | c565a4700689 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/nitros9guide/tee.refentry Sun Jul 07 08:58:56 2002 +0000 @@ -0,0 +1,56 @@ +<refentry id="tee"> +<refnamediv> +<refname>TEE</refname> +<refpurpose>Copy standard input to multiple output paths</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<cmdsynopsis> +<command>TEE</command> +<arg choice="plain"> + &repeatst;&replstart;path&replend;&repeaten; +</arg> +</cmdsynopsis> +</refsynopsisdiv> + +<refsect1><title>Description</title> + +<para> + +TEE + +Copy standard input to multiple output paths + +Syntax: Tee {&replstart;path&replend;} + + + +This command is a filter (see 4.3.3) that copies all text lines from +its standard input path to the standard output path +<emphasis>and</emphasis> any number +of additional output paths whose pathlists are given as parameters. +</para> +<para> +The example below uses a pipeline and TEE to simultaneously send the +output listing of the "dir" command to the terminal, printer, and a +disk file: +</para> +<screen> +dir e ! tee /printer /d0/dir.listing +</screen> +<para> +The following example sends the output of an assembler listing to a +disk file and the printer: +</para> +<screen> +asm pgm.src l ! tee pgm.list >/printer +</screen> +<para> +The example below "broadcasts" a message to four terminals: +</para> +<screen> +echo WARNING System down in 10 minutes ! tee /t1 /t2 /t3 /t4 +</screen> +</refsect1> +</refentry> +