<div dir="ltr">It works.<div><br></div><div><div>$ cat ls | tee /tmp/ls.1 > /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"><<a href="mailto:foo7775@comcast.net" target="_blank">foo7775@comcast.net</a>></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 'tee' command, which allows the user to "split" 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'd never considered that before.<br>
<br>I thought I'd take just a minute to ask the group if anyone knows of a way to copy an arbitrary "file (or group of files, some of which might be compiled binaries, etc.)" from a single source to two separate destinations simultaneously. I'd *briefly* considered something like <br>
<br> "cat sourcefile | tee DEST1 DEST2"<br></div><div><br></div><div>since within *NIX everything'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's not easily possible, but the question kind of intrigued me, & 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>