<div dir="ltr">It works.<div><br></div><div><div>$ cat ls | tee /tmp/ls.1 &gt; /tmp/ls.2</div></div><div><div>$ sum ls /tmp/ls*</div><div>44762   131 ls</div><div>44762   131 /tmp/ls.1</div><div>44762   131 /tmp/ls.2</div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 30, 2014 at 9:27 PM,  <span dir="ltr">&lt;<a href="mailto:foo7775@comcast.net" target="_blank">foo7775@comcast.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Arial;font-size:12pt;color:#000000"><div>Hey, I think that most of us are familiar with the &#39;tee&#39; command, which allows the user to &quot;split&quot; a single input into two output streams.  I was asked yesterday if there was a way to do the same thing with files that are being copied,and I had to admit that I had no idea, I&#39;d never considered that before.<br>
<br>I thought I&#39;d take just a minute to ask the group if anyone knows of a way to copy an arbitrary &quot;file (or group of files, some of which might be compiled binaries, etc.)&quot; from a single source to two separate destinations simultaneously.  I&#39;d *briefly* considered something like <br>
<br>   &quot;cat sourcefile | tee DEST1 DEST2&quot;<br></div><div><br></div><div>since within *NIX everything&#39;s a file, but then figured that compiled binaries *might* cause problems.<br></div><div><br></div><div>Not a really big deal if it&#39;s not easily possible, but the question kind of intrigued me, &amp; I figure I might learn something cool...  ;-)<br>
<br>Thanks guys!<br></div><div><br>T.<br></div></div></div><br>_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Dan Duncan
</div>