It is utility to play with multithreading. Tested on Linux (Ubuntu) and Windows.
- Written with using C++20 features (can be adapted to lower standards)
- Multithreading support for faster searches
- Command-line interface similar to the classic grep command
- Testing with GTest
- Build system using CMake
#Requirements
- C++20 compatible compiler
- CMake
- GTest
For compilation use next:
mkdir buildcd buildcmake ..cmake --build .make testsor
ctestOr you could always run tests manually as executable file
This utility super primitive and supports only one type of arguments
./MyGrep PATTERN PATHYou could compare results of this utility and regular grep/pgrep in test folder (tests/test_folder_2)
This MyGrep arguments could be equivalent to this grep arguments: MyGrep works with all files by default (doesn't skip binaries or others files)
MyGrep 123 tests
grep -ra testsMyGrep 123 tests/test_folder_1/100.txt
grep -raH tests/test_folder_1/100.txt