This repository contains the source code of the Minigrep Terminal Program, which is based on the grep Program for Linux, developed by:
- Ramón Álvarez (ralvarezdev).
Only C++.
To get started with the Minigrep source code, follow these instructions.
-
Create a folder named as
minigrep
. Change the Current Working Directory to that one. -
Clone this repository to your local machine using the following command:
git clone https://github.com/ralvarezdev/minigrep
-
To successfully compile this program, use the following command:
g++ -o bin\main.exe src\lib\main.cpp src\lib\rgbColor.cpp src\lib\rgbColor.h src\lib\input.cpp src\lib\input.h src\lib\ansiCodes.h src\lib\filesOp.cpp src\lib\filesOp.h
(You must have MinGW Compiler installed in your local machine). -
Run the program by clicking the
main.exe
inside thebin
folder or by using a single-line command as:.\bin\main.exe phrase to find... filepath...
(You must enter your own filepath and your own phrase to highlight).
phraseToHighlight... filePath...
To Highlight the Phrase
-c
Change Background and Foreground Color
-b
Change Background Color
-f
Change Foreground Color
-h
Help