Skip to content

Implementation of grep with a bit different interface

Notifications You must be signed in to change notification settings

MPogotsky/SpecificGrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
git clone https://github.com/MPogotsky/SpecificGrep.git
cd SpecificGrep
  1. Create a build directory:
mkdir build
cd build
  1. Build an executable:
cmake ..
make

To build unit tests as well, run cmake with following flag:

cmake -DUNIT_TESTS=ON ..

Usage

./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

About

Implementation of grep with a bit different interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published