title: Assign grep count to variable
body: <p>How to assign the result of </p>
  
  <pre><code>grep -c "some text" /tmp/somePath
  </code></pre>
  
  <p>into variable so I can echo it.</p>
  
  <pre><code>#!/bin/bash
  some_var = grep -c "some text" /tmp/somePath
  echo "var value is: ${some_var}"
  </code></pre>
  
  <p>I also tried: </p>
  
  <pre><code>some_var = 'grep -c \"some text\" /tmp/somePath'
  </code></pre>
  
  <p>But I keep getting: <code>command not found</code>.</p>