<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">It depends on the definition of "copy"
      and the use case.&nbsp; Mostly, I've only used tee for logging, but if
      you're trying to copy something to multiple destinations, what
      don't you like about "cat sourcefile | tee DEST1 DEST2"?&nbsp; If it's
      just that it spits gibberish to stdout, it could be redirected to
      /dev/null.&nbsp; What no combination of cat/tee/redirection will do is
      preserve chmod information, which is probably a problem.<br>
      <br>
      On 5/30/2014 9:27 PM, <a class="moz-txt-link-abbreviated" href="mailto:foo7775@comcast.net">foo7775@comcast.net</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:211359439.1393087.1401506838792.JavaMail.root@comcast.net"
      type="cite">
      <div style="font-family: Arial; font-size: 12pt; color: #000000">
        <div aria-label="Compose body">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.&nbsp; 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.&nbsp; I'd
          *briefly* considered something like <br>
          <br>
          &nbsp;&nbsp; "cat sourcefile | tee DEST1 DEST2"<br>
        </div>
        <div aria-label="Compose body"><br>
        </div>
        <div aria-label="Compose body">since within *NIX everything's a
          file, but then figured that compiled binaries *might* cause
          problems.<br>
        </div>
        <div aria-label="Compose body"><br>
        </div>
        <div aria-label="Compose body">Not a really big deal if it's not
          easily possible, but the question kind of intrigued me, &amp;
          I figure I might learn something cool...&nbsp; ;-)<br>
          <br>
          Thanks guys!<br>
        </div>
        <div aria-label="Compose body"><br>
          T.<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
clue mailing list: <a class="moz-txt-link-abbreviated" href="mailto:clue@cluedenver.org">clue@cluedenver.org</a>
For information, account preferences, or to unsubscribe see:
<a class="moz-txt-link-freetext" href="http://cluedenver.org/mailman/listinfo/clue">http://cluedenver.org/mailman/listinfo/clue</a></pre>
    </blockquote>
    <br>
  </body>
</html>