Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

About

My version of Linux's Grep tool from Programming 1 college course

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uru-programming-1-minigrep

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.

Build

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

For a better experience, run it with the terminal in fullscreen.

Usage

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.

Developer

License

GPL-3.0. See LICENSE.

About

My version of Linux's Grep tool from Programming 1 college course

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages