title: Redirect command output without overwriting
body: <p>I do have a command like this:</p>
  
  <pre><code> grep pattern file &gt; result &amp;&amp; head -n 1 file &gt;&gt; result
  </code></pre>
  
  <p>In which I use <code>grep</code> to extract the specific pattern and <code>head</code> to extract the headline.  </p>
  
  <p>Is it possible to simplify my command ? For example to redirect the output from <code>grep</code>?  </p>
  
  <p>If I am using this:  </p>
  
  <pre><code> head -n 1 file &gt; result &lt;&lt;(grep pattern file)
  </code></pre>
  
  <p>I get an error <code>bash: syntax error near unexpected token ('</code></p>