Findstr not finding file when searching by extension
        Posted  
        
            by 
                feiht thief
            
        on Super User
        
        See other posts from Super User
        
            or by feiht thief
        
        
        
        Published on 2012-06-18T19:14:43Z
        Indexed on 
            2012/06/18
            21:19 UTC
        
        
        Read the original article
        Hit count: 297
        
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?
© Super User or respective owner