https://github.com/mpogotsky/specificgrep
Implementation of grep with a bit different interface
https://github.com/mpogotsky/specificgrep
boost cpp17 github-actions multithreading
Last synced: about 1 month ago
JSON representation
Implementation of grep with a bit different interface
- Host: GitHub
- URL: https://github.com/mpogotsky/specificgrep
- Owner: MPogotsky
- Created: 2023-03-31T21:39:55.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-19T20:00:45.000Z (about 2 years ago)
- Last Synced: 2025-02-16T07:26:11.853Z (3 months ago)
- Topics: boost, cpp17, github-actions, multithreading
- Language: C++
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpecificGrep
## Installation
### Prerequisites
Before you can install Grep, you need to have the following software installed:- CMake 3.22.1
- Boost### Building from source
1. Clone the repository:
```console
git clone https://github.com/MPogotsky/SpecificGrep.git
cd SpecificGrep
```2. Create a build directory:
```console
mkdir build
cd build
```3. Build an executable:
```console
cmake ..
make
```To build unit tests as well, run cmake with following flag:
```console
cmake -DUNIT_TESTS=ON ..
```## Usage
```console
./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 | \.log |
|-r or --result_file| Name of the file where result is given| \.txt |
|-t or --threads| Number of threads in the pool| 4 |