title: syntax error near unexpected token `&' (using "|&")
body: <p>I have  syntax error near unexpected token <code>&amp;</code> in next :
  in bash scripts its'go like this :</p>
  
  <pre><code>#!/bin/bash
  var1=`(/usr/bin/time cdifonline -CD 186821 -ALL &gt; /dev/null)|&amp; grep real|awk '{print $2}'`
  </code></pre>
  
  <p>when i issue this command on cli i get good output, problem is when invoke this in script i can get any output from var1</p>
  
  <pre><code>./check_cdifonline.sh: command substitution: line 2: syntax error near unexpected token `&amp;'
  ./check_cdifonline.sh: command substitution: line 2: `(/usr/bin/time cdifonline -CD 186821 -ALL &gt;/dev/null) | &amp; grep real | awk '{print $2}''
  </code></pre>