Findstr not finding file when searching by extension
- by feiht thief
I am experiencing some odd behaviour when using findstr to search a collection of .php files.
Depending on how I specify the file list, the file is not being found, even though it contains the string in question.
These two files contain the string "personemail": Content.php and People.php
A) Works as expected (finds personemail in Content.php and People.php)
findstr /i /s /c:"personemail" *
B) Fails (finds only in Content.php) - expected to find in Content.php and People.php
findstr /i /s /c:"personemail" *.php
C) Works as expected (finds in People.php):
findstr /i /s /c:"personemail" p*.php
What is going on?