Before you can install Grep, you need to have the following software installed:
- CMake 3.22.1
- Boost
- Clone the repository:
git clone https://github.com/MPogotsky/SpecificGrep.git
cd SpecificGrep
- Create a build directory:
mkdir build
cd build
- Build an executable:
cmake ..
make
To build unit tests as well, run cmake with following flag:
cmake -DUNIT_TESTS=ON ..
./specific_grep PATTERN OPTIONS
Possible options, you can also find them in --help menu
Parameter | Description | Default value |
---|---|---|
-d or --dir | Start directory | Current directory |
-l or --log_file | Name of the log file | <program name>.log |
-r or --result_file | Name of the file where result is given | <program name>.txt |
-t or --threads | Number of threads in the pool | 4 |