[comp.sources.atari.st] v05i002: tee -- Copy stdin to stdout as well as a file

koreth@panarthea.ebay.sun.com (Steven Grimm) (03/07/91)

Submitted-by: ersmith@uwovax.uwo.ca (Eric R. Smith)
Posting-number: Volume 5, Issue 2
Archive-name: tee

Here's a very simple utility, "tee": all it does is copy its
standard input to both the standard output and to another file.
Most useful in the presence of pipes, e.g. under MiNT or RTX,
for doing things like:

compress -dc textfile | tee text.out | more

which lets you look at the file as you decompress it.

[Binaries posted to the binaries group. -sg]

Eric Smith
ersmith@uwovax.uwo.ca
------------------------- cut here ---------------------------
table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 teesrc.lzh
M&]DM;&@Q+:\!  "[ @  QZ):%B  !71E92YCVF;=[;,Y;68F" ?&[XU[W_O^z
M M[_X'P^OZKL74:"*@#9J]MI;54OXM[%6$I]?RM:B?9AA53J?SL@RGAO1!.9y
M#^;J%P/_2W8*4YWNN'=&8EW;N]NG=^;8D^C@A[E^XX6@/<$_&,/9-Y6(V$,)x
M9FVPK!'F+AX2A#KV58:+]!EO(0,E:.5\I *J"+:/)Y\W<-? 4"VKICE7%"S<w
M,"/'1!9RT:L#21<-)@Y[T0.Q0TTFJV)3X='X%O!F0\"0OM;R0WR6/PH2D$#Ov
MZ+.JQ\G#(ABK_795&G H<"_2,%;H#>0"G1P7"?37\?7W?=CX"AR/Z#SWUZR^u
M0V!>G[QG'?WD).J*M#]/LE:/Z3_#<QGN^$DSCF5?![XYCO0N"G_7'EGGO[O@t
M28*K_&5V=<GC]5@C>04^9\L@3*S#_/7/^J$'5=)#(?]8!"\-$:9B)0U<3H[Ls
M?*PI%9/V^K,5#&7"VB7W^/#-1KRC+=%!99)T.=E,ZO7>HV^;DX8*$7&XT\7Wr
MTJ/['MD43QB&MW 6BLH].[5*WWLLIZ;D)WQ(]9J#?W"1KSW(B:5S<WO";AZPq
+DN#'C*WKE_87Z  6p
 o
end