title: pipeline echo to gcc?
body: <p>To call <code>printf("Hello!");</code> in C from terminal I use</p>
  
  <pre><code>echo '#include&lt;stdio.h&gt;
  void main()
  {
  printf("Hello!");
  }' &gt; foo.c
  </code></pre>
  
  <p>and then call <code>gcc foo.c</code> to make the output. Unfortunately, the pipelining </p>
  
  <pre><code>echo '#include&lt;stdio.h&gt;
  void main()
  {
  printf("Hello!");
  }' | gcc 
  </code></pre>
  
  <p>fails complaining for no input file. Ultimately, I want to have a script where I can compile a C <code>command</code> from terminal with <code>./script [command]</code>. Any suggestion would be appreciated. </p>