Minigrep, a C++ terminal program based on Linux grep that highlights a phrase in a file. Built for the Programming I course of the Computer Science career at Universidad Rafael Urdaneta, Maracaibo, Venezuela.
Note: This repository is archived and read-only. The original README described a CMake build and a src/main.cpp entry point; neither exists in the repository (the entry point is src/lib/main.cpp and there is no CMakeLists.txt), so only the G++ build below applies.
Requires a G++ compiler (MinGW on Windows). From the repository root:
# Windows
g++ -o bin\Minigrep.exe src\lib\main.cpp src\lib\filesOp.cpp src\lib\input.cpp src\lib\rgbColor.cpp
# Linux
g++ -o bin/Minigrep.exe src/lib/main.cpp src/lib/filesOp.cpp src/lib/input.cpp src/lib/rgbColor.cppFor a better experience, run it with the terminal in fullscreen.
Run Minigrep.exe for the interactive mode, or pass the phrase and the file path in one line. The file path is always the last argument:
./bin/Minigrep.exe phrase to find... filepath...Options:
-c— Change background and foreground color.-b— Change background color.-f— Change foreground color.-h— Help.
The bin folder holds a sample file, loremSamePath.html, and the repository root has loremOutsidePath.html.
- ralvarezdev — Ramón Álvarez
GPL-3.0. See LICENSE.