Command line based for searching text files.
Originally designed as a programming aid to search multiple files for text criteria and display the results in a clean, simple way. There are other programs that can provide similar results but this aims to be simple to use, much more specific in its task and give a clean output.
search FILE(s) -for[:filter] TEXT [-not TEXT]
Multiple FILE's can be searched as well as multiple TEXT. Several filters are available for more specific results:
caseAllows case sensitive searcheswordSearches for whole words rather than parts of wordsstatsOnly the file and line counts are displayed
These filters only work with the -for argument and all TEXT (including -not TEXT) will use the same filters.
Lines are shown if all -for TEXT criteria is met and no -not TEXT is found.
Examples:
search src/*.c -for:word:case int mainsearch bible.txt -for god -not jesus
To show every line except for those containing unwanted TEXT:
search dictionary -for:stats -not noun verb