title: How to use &>> in a xargs command?
body: <p>Experts,</p>
  <p>Following this <a href="https://stackoverflow.com/questions/845863/how-to-use-in-an-xargs-command">question</a> I execute this command:</p>
  <p><strong>xargs argument using posix:</strong></p>
  <pre><code>find &lt;somePath&gt; -name '*.html' | sort -n | xargs -I{} sh -c 'w3m &quot;{}&quot; &amp;&gt;&gt; &quot;test.log&quot;' --{}
  </code></pre>
  <p>I get the following errors:</p>
  <ul>
  <li>file.hml: -c: line 0: syntax error near unexpected token `&gt;'</li>
  <li>file.hml: -c: line 0: `w3m &quot;.html&quot; &amp;&gt;&gt; &quot;test.log&quot;'</li>
  </ul>
  <p>Why does bash not understand &amp;&gt;&gt; in my line execution?</p>
  <p>As @Nahuel Fouilleul said &quot;sh (posix) doesn't recognize the (bash) redirection &amp;&gt;&gt;&quot;.</p>
  <p><strong>xargs argument using bash</strong></p>
  <p>However the solution proposed is not working when I execute the following command:</p>
  <pre><code>find &lt;somePath&gt; -name '*.html' | sort -n | xargs -I{} w3m {} &amp;&gt;&gt; &quot;test.log&quot;
  </code></pre>
  <p>I receive this error:</p>
  <ul>
  <li>bash: syntax error near unexpected token `&gt;'</li>
  </ul>
  <p>Why does bash not understand &amp;&gt;&gt; in my line execution? See my answer</p>