title: How to use grep -e to match partial words?
body: <p>If you use grep like</p>
  
  <pre><code>grep -rnw '/your/path/to/search/' -e 'n getFoo'
  </code></pre>
  
  <p>grep wouldn't find a file that contains "function getFoo()".</p>
  
  <p>If you only search for 'getFoo' or else 'function getFoo', grep will find the file that contains the function.</p>
  
  <p>So what's the best way to find a file containing part(s) of a string?</p>
  
  <p>Thanks in advance!</p>