Well, since you are windows 7, you could do this in powershell. First you would open a Powershell console, then here are some sample commands that you could run (you can see all these examples and more by typing "Get-Help Select-String -example" at the powershell command line):
C:\PS>select-string -path *.xml -pattern "the the"
This command searches through all files with the .xml file name extension in the current directory and displays the lines in those files that
include the string "the the".
C:\PS>select-string -path $pshome\en-US\*.txt -pattern "@"
This command searches the Windows PowerShell conceptual Help files (about_*.txt) for information about the use of the at sign (@).
To indicate the path, this command uses the value of the $pshome automatic variable, which stores the path to the Windows PowerShell installa
tion directory. In this example, the command searches the en-US subdirectory, which contains the English (US) language Help files for Windows
C:\PS>get-childitem c:\windows\system32\* -include *.txt -recurse |
select-string -pattern "Microsoft" -casesensitive
This command examines all files in the subdirectories of C:\Windows\System32 with the .txt file name extension and searches for the string "M
icrosoft". The CaseSensitive parameter indicates that the "M" in "Microsoft" must be capitalized and that the rest of the characters must be
lowercase for Select-String to find a match.
C:\PS>$f = select-string -path audit.log -pattern "logon failed" -context 2, 3
C:\PS> ($f).context | format-list
The first command searches the Audit.Log file for the phrase "logon failed." It uses the Context parameter to capture 2 lines before the matc
h and 3 lines after the match.
The second command uses the Count property of object arrays to display the number of matches found, in this case, 2.
The third command displays the lines stored in the Context property of the first MatchInfo object. It uses array notation to indicate the fir
st match (match 0 in a zero-based array), and it uses the Format-List cmdlet to display the value of the Context property as a list.
The output consists of two MatchInfo objects, one for each match detected. The context lines are stored in the Context property of the MatchI