keyword search script

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

I need to search 90 very large ISA log files for a set of
keywords.
I have no scripting experience whatsoever which is why
I've resorted to asking for help!!!!

Can anybody sort me out please - ASAP?????

Thanks.
 
If you're just looking for a string such as "Keith Edwards"
then you can click Start / Search and specify the exact
details.

If you're after something more complex then please give
a specific example.
 
There will be anything up to 30 - 40 keywords to search
for, and I would like to output the whole line that any of
the keywords appear into a seperate text file.

Hope this helps.
 
Place these lines inside a batch file:

@echo off
findstr "There will be anything up to 10 keywords" test.txt > output.txt

This command will locate all lines in test.txt that contain
"There" or "will" or "be" etc, and place them in output.txt.

Type findstr /? at the Command Prompt to see more options.
 
There will be anything up to 30 - 40 keywords to search
for, and I would like to output the whole line that any of
the keywords appear into a seperate text file.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top