Mercurial > hg > Members > kono > nitros9-code
annotate docs/nitros9guide/tee.refentry @ 2909:b71f67993fe0
level2/coco3/makefile: Use OS9FORMAT macro
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 11 Jan 2014 20:56:53 +0100 |
parents | 4dae346c4969 |
children |
rev | line source |
---|---|
138 | 1 <refentry id="tee"> |
2 <refnamediv> | |
3 <refname>TEE</refname> | |
4 <refpurpose>Copy standard input to multiple output paths</refpurpose> | |
5 </refnamediv> | |
6 | |
7 <refsynopsisdiv> | |
8 <cmdsynopsis> | |
1093 | 9 <command>tee</command> |
138 | 10 <arg choice="plain"> |
975
c565a4700689
The entitity replstart was replaced with <replaceable>
roug
parents:
138
diff
changeset
|
11 &repeatst;<replaceable>path</replaceable>&repeaten; |
138 | 12 </arg> |
13 </cmdsynopsis> | |
14 </refsynopsisdiv> | |
15 | |
16 <refsect1><title>Description</title> | |
17 | |
18 <para> | |
1093 | 19 This command is a filter (see <xref linkend="sec4.3.3"/>) that copies all text lines from |
138 | 20 its standard input path to the standard output path |
21 <emphasis>and</emphasis> any number | |
22 of additional output paths whose pathlists are given as parameters. | |
23 </para> | |
24 <para> | |
1053
b5ff125a1d60
Since this book was only typeset in fixed width, single-font, they used
roug
parents:
975
diff
changeset
|
25 The example below uses a pipeline and <command>tee</command> to simultaneously send the |
b5ff125a1d60
Since this book was only typeset in fixed width, single-font, they used
roug
parents:
975
diff
changeset
|
26 output listing of the <command>dir</command> command to the terminal, printer, and a |
138 | 27 disk file: |
28 </para> | |
29 <screen> | |
30 dir e ! tee /printer /d0/dir.listing | |
31 </screen> | |
32 <para> | |
33 The following example sends the output of an assembler listing to a | |
34 disk file and the printer: | |
35 </para> | |
36 <screen> | |
37 asm pgm.src l ! tee pgm.list >/printer | |
38 </screen> | |
39 <para> | |
40 The example below "broadcasts" a message to four terminals: | |
41 </para> | |
42 <screen> | |
43 echo WARNING System down in 10 minutes ! tee /t1 /t2 /t3 /t4 | |
44 </screen> | |
45 </refsect1> | |
46 </refentry> | |
47 |