An open API service indexing awesome lists of open source software.

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

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 |