Grep a word in files with specific file extension in windows
<p>I would use the following command to grep a text in a directory with many files.</p>

<pre><code>grep -irl "SampleText" *.txt
</code></pre>

<p>My case is to grep only in <code>.txt</code> files. While executing the above command in command prompt of windows it throws an error like  </p>

<pre><code>grep: *.txt: Invalid argument
</code></pre>

<p>Did I miss something?</p>