How to run grep in a shell script, but exclude $0
<p>I'm writing a script to check if i have removed all my javascript debbugger statements. </p>

<p>the current line in the script is: </p>

<pre><code>grep -R --exclude-dir=node_modules --exclude=$0 "debugger" .
</code></pre>

<p>when I run this script in the directory im in it always returns </p>

<pre><code>./debugger-checker.sh:4:grep --color=auto -nr --exclude-dir=node_modules --exclude=$0 "debugger" .
</code></pre>

<p>how can do you make grep exclude the shell script that is running it??</p>