Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!grapevine!panarthea.ebay.sun.com From: koreth@panarthea.ebay.sun.com (Steven Grimm) Newsgroups: comp.sources.atari.st Subject: v05i002: tee -- Copy stdin to stdout as well as a file Keywords: lharc, uue, C Message-ID: Date: 7 Mar 91 02:32:18 GMT Sender: news@grapevine.EBay.Sun.COM Reply-To: ersmith@uwovax.uwo.ca (Eric R. Smith) Lines: 35 Approved: koreth@panarthea.ebay.sun.com 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%"S04^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