title: Shell script with wc -l, if statement ain't working
body: <p>The problem is with this code:</p>
  
  <pre><code>    words=`wc -l /home/tmp/logged.log | awk '{print $1}'`;
      if [ $words == 26 ]
      then
      echo $words
      echo Good
      else
      echo Not so good
      fi
  </code></pre>
  
  <p>it always returns the else statement. Even tho the result is 26.
  I also tried </p>
  
  <pre><code>     words=`wc -l &lt; /home/jonathan/tmp/logged.log`;
  </code></pre>