Page 1 of 1

Scan a file looking looking for multiple key words or phrases?

Posted: 15 Mar 2017 08:40
by SIMMS7400
Hi Folks -

I was wondering if anyone could suggest an easy way in which I could scan a particular text file using multiple key words/phrases?

Thanks!

Re: Scan a file looking looking for multiple key words or phrases?

Posted: 15 Mar 2017 08:47
by ShadowThief
findstr does this automatically if you don't use the /C flag.

Re: Scan a file looking looking for multiple key words or phrases?

Posted: 15 Mar 2017 08:51
by Squashman
I remember showing you how to use the /G option with FINDSTR in one of your previous questions.
viewtopic.php?f=3&t=7572&p=50365#p50343

Re: Scan a file looking looking for multiple key words or phrases?

Posted: 15 Mar 2017 10:50
by SIMMS7400
Yes, thank you Squash! It's working great.

However, when using the /F: switich as well, is there a way to put put which file the search strings were found in? thanks!