title: command not found error in shell script
body: <p>I wrote a code to count the number of word per line. Here is my code</p>
  
  <pre><code>num= $(echo $compareFile1 | wc -w)
  </code></pre>
  
  <p>Here <code>$compareFile1</code> contains each line. I am trying to get the number in <code>num</code> variable. But I am getting the following error </p>
  
  <pre><code>line 3: 6: command not found
  </code></pre>
  
  <p>where <code>6</code> clearly the number of word. I checked. but there is nothing in the <code>num</code> variable and also the error.
  Anybody can help me? </p>