title: unexpected EOF while looking for matching error
body: <p>I am running below script and getting </p>
  
  <blockquote>
    <p>error script.sh: line 9: unexpected EOF while looking for matching `''
    script.sh: line 15: syntax error: unexpected end of file.</p>
  </blockquote>
  
  <p>Though I tried to run line 9 manually n it runs without error.</p>
  
  <pre><code>alias gxt="awk -F "_" '{print \$1}' test | uniq"
  count = $(cat test | awk -F "_" '{print $1} | uniq | wc -l)
  
  for i in {1..count};
          do
          User=$(gxt | head -n $i)
          recharge=$(grep -E "$User.recharge" test| awk -F "_" '{print $3}' | xargs ) 
          total1=( $((${recharge// /+})))   
          sales=$(grep -E "$User.sale" test| awk -F "_" '{print $3}' | xargs ) 
          total2=( $((${sales// /+})))
          balance=`expr $total1 - $total2`
          echo $User.balance.$balance &gt;&gt; result
          done
  </code></pre>