title: Compare variable with integer in shell?
body: <p>I have an if statement I need to run, as long as the value I have stored in my <code>$counter</code> variable is greater than <code>5</code>.</p>
  
  <p>Here is the respective section of my current (non-functioning) script:</p>
  
  <pre><code>if $counter &gt; 5
  then
      echo "something"
  fi
  </code></pre>
  
  <p>The mistake I'm making is probably very obvious, but for some reason I couldn't find the solution online..
  Thanks!</p>