Skip to content

vilebile17/grep_plus_plus

Repository files navigation

grep++

A little cli-tool, built in c++, that does a lot of the functions of normal grep.

🛠️ Installation

Clone the repo and run CMake:

git clone https://github.com/vilebile17/grep_plus_plus
cd grep_plus_plus
cmake -B build
cmake --build build

And after that, your executable file will be ready at ./build/grep++. You can move to the root directory and run it with:

mv ./build/grep++ .
./grep++ -h

🚩 List of Flags

Flag Function
-h displays the help message
-v displays the program version
-i case insensitive
-c displays the number of times that it found the substring after printing the other results
-C displays only the number of times that it found the substring
-n displays line numbers next to the lines themselves
-N only finds num instances of the substring (USAGE: -N <num>)

❓ Why does this exist?

¯\_(ツ)_/¯

It is pretty cool though 🗿

About

Err... grep but cooler :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors