I have to search trough a huge amount of .txt
files. I know I can do multiple words search, but here's my problem. I want my results to only be the .txt
files that contain all of the words of the search entry.
For example:
File 1:
test1
File 2:
test1
test2
Search files for test1
and test2
will only result in showing File 2.
Hope someone can help me out. Thanks
This question is related to
notepad++
If you are using Notepad++ editor (like the tag of the question suggests), you can use the great "Find in Files" functionality.
Go to Search > Find in Files
(Ctrl+Shift+F for the keyboard addicted) and enter:
(test1|test2)
*.txt
Follow current doc.
to have the path of the current file to be filled.Regular Expression
If you are using Notepad++ editor Goto ctrl + F choose tab 3 find in files and enter:
Source: Stackoverflow.com