title: Redirect stdin in a script to another process
body: <p>Say I have a bash script that get some input via stdin. Now in that script I want to launch another process and have that process get the same data via its stdin. </p>
  
  <pre><code>
  #!/bin/bash
  
  echo STDIN | somecommand
  </code></pre>
  
  <p>Now the "echo STDIN" thing above is obviously bogus, the question is how to do that? I could use read to read each line from stdin, append it into a temp file, then </p>
  
  <pre><code>cat my_temp_file | somecommand
  </code></pre>
  
  <p>but that is somehow kludgy.</p>