title: [: : integer expression expected
body: <pre><code>COUNTER=0    
      let COUNTER=COUNTER+1
      count=`ssh -i /var/www/.ssh/id_rsa_root -o stricthostkeychecking=no $host $cmd`
      count1=`echo $count | awk '{print $4}'`
      printf "count1 : $count1\n"
      result1=${count1/.*}
      if [ "$result1" -ge "0" ]; then
              echo $host 
      else
              echo $host
              exit
      fi
  </code></pre>
  
  <p>If the value of <code>$result1</code> is INTEGER and greater than zero, it'll goto IF loop (works fine for me)</p>
  
  <p>But when it is not INTEGER, it is coming to else loop (which it is suppose to do) with the following error in the Output</p>
  
  <pre><code>line 55: [: : integer expression expected
  </code></pre>
  
  <p>but i dont want the above error in my output. I tried to use <code>2&gt;/dev/null</code> with this but no luck.</p>
  
  <p>please help!</p>