I would use the following command to grep a text in a directory with many files.
grep -irl "SampleText" *.txt
My case is to grep only in .txt
files. While executing the above command in command prompt of windows it throws an error like
grep: *.txt: Invalid argument
Did I miss something?