title: Cygwin execution of .sh file can't find grep command?
body: <p>So I was trying to create little .sh script for my work and run into one little problem.
  My cygwin terminal (x64) runs just fine and I'm using it often enough to do manual greps.
  In the begging I had some issues with this command but now it works fine in cygwin terminal.</p>
  <p>Once I wrote my little script and tried to run it only output I'm getting is &quot;line 6: grep: command not found&quot;</p>
  <p>My execution method is:</p>
  <ol>
  <li>Open cygwin terminal</li>
  <li>cd to script location</li>
  <li>type in ./script.sh</li>
  <li>enter :)</li>
  </ol>
  <p>Anyone knows how to fix that? I already added cygwin bin folder to my system path (Win 10 btw) but that didn't helped. Looked around for a while but haven't found anything useful, mostly issues with grep itself.</p>
  <p>my script for reference:</p>
  <pre><code>mkdir -p output
  PATH=$PWD&quot;/output&quot;
  while IFS=&quot;;&quot; read -r component location global
  do
    cd $location
    grep -iRl $global --exclude-dir={wrongdir1,wrongdir2} &gt; $PATH&quot;/&quot;$component&quot;.txt&quot;
  
  done &lt; input.csv
  </code></pre>