Source Search is a C++ application designed to scan source code files for specified words, providing contextual lines around each match. Originally written in Python by a friend and ported to C++ by me, this tool is useful for developers and analysts looking to quickly identify specific terms within large codebases.
./sourcesearch <searchWordsFile> [<outputFile> <directory>]
lines.txt
.--version
: Displays the version of the program.--help
: Shows the help message.
To search for words listed in words.txt
within the current directory and save the output to results.txt
:
./sourcesearch words.txt results.txt .
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License