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>
|
|
9 <command>TEE</command>
|
|
10 <arg choice="plain">
|
|
11 &repeatst;&replstart;path&replend;&repeaten;
|
|
12 </arg>
|
|
13 </cmdsynopsis>
|
|
14 </refsynopsisdiv>
|
|
15
|
|
16 <refsect1><title>Description</title>
|
|
17
|
|
18 <para>
|
|
19
|
|
20 TEE
|
|
21
|
|
22 Copy standard input to multiple output paths
|
|
23
|
|
24 Syntax: Tee {&replstart;path&replend;}
|
|
25
|
|
26
|
|
27
|
|
28 This command is a filter (see 4.3.3) that copies all text lines from
|
|
29 its standard input path to the standard output path
|
|
30 <emphasis>and</emphasis> any number
|
|
31 of additional output paths whose pathlists are given as parameters.
|
|
32 </para>
|
|
33 <para>
|
|
34 The example below uses a pipeline and TEE to simultaneously send the
|
|
35 output listing of the "dir" command to the terminal, printer, and a
|
|
36 disk file:
|
|
37 </para>
|
|
38 <screen>
|
|
39 dir e ! tee /printer /d0/dir.listing
|
|
40 </screen>
|
|
41 <para>
|
|
42 The following example sends the output of an assembler listing to a
|
|
43 disk file and the printer:
|
|
44 </para>
|
|
45 <screen>
|
|
46 asm pgm.src l ! tee pgm.list >/printer
|
|
47 </screen>
|
|
48 <para>
|
|
49 The example below "broadcasts" a message to four terminals:
|
|
50 </para>
|
|
51 <screen>
|
|
52 echo WARNING System down in 10 minutes ! tee /t1 /t2 /t3 /t4
|
|
53 </screen>
|
|
54 </refsect1>
|
|
55 </refentry>
|
|
56
|