title: If statement error (unary Operator Expected)
body: <p>I am receiving this error message when comparing two integer values in a bash script <code>[: 2315669844: unary operator expected</code>. I have looked up this error and nothing appears to work for my case. Here is part  my script</p>
  
  <pre><code>CURR_AVAIL=`df /home2 | tail -1 | awk '{ print $4 }'`   
  DIFF_AVAIL=$((CURR_AVAIL-PREV_AVAIL))
  
  echo “---------------------------------------------“ &gt;&gt; sys_log
  date &gt;&gt; sys_log
  if [ "$DIFF_AVAIL" –gt 1000 ];
          then
          echo $DIFF_AVAIL &gt;&gt; sys_log
  elif [ "$DIFF_AVAIL" –lt -1000 ];
          then
          echo $DIFF_AVAIL &gt;&gt; sys_log
  fi;
  </code></pre>