« first day (284 days earlier)      last day (2955 days later) » 

user69820
8:21 AM
flatline
 
9:53 AM
Morning.
 
 
3 hours later…
12:36 PM
0
Q: FINSTR to search string in files in a specified set of extensions

deostrollI want to search for a string in files which end with .asp, .config, and .txt. In other words I want to query asp, web.config, or text files for that particular string. I found that the /G switch doesn't do the trick.

 
user69820
@deostroll is FINSTR an actual Windows command?
 
user69820
I don't seem to have it on XP
 
Can't help either. No Windows.
 
user69820
something like FINDSTR /S /L "the string to find" *.asp
 
user69820
maybe
 
user69820
12:51 PM
also you could just install Windows Desktop Search, have it index everything and then you can find it using a lovely GUI
 
user69820
none of this command prompt malarkey
 
1:04 PM
@oraclecertifiedprofessional my bad, its findstr
I want multiple file extensions *.asp, *.config, etc
 
user69820
@deostroll i think you might just need to run several lines in a batch, each targeting a different file type
 
user69820
or could you use the /F option to supply a list of wildcards?
 
user69820
1:52 PM
I'm back
 
user69820
FINDSTR /S /L /c:"the string to find" *.asp *.config *.txt
 
user69820
will work I think, just list the file type wildcards
 
user69820
/F doesn't work: I just got
 
user69820
FINDSTR: Cannot open *.asp
FINDSTR: Cannot open *.config
FINDSTR: Cannot open *.txt
 

« first day (284 days earlier)      last day (2955 days later) »