An open API service indexing awesome lists of open source software.

https://github.com/ralvarezdev/uru-programming-1-minigrep

My version of Linux's Grep tool from Programming 1 college course
https://github.com/ralvarezdev/uru-programming-1-minigrep

cpp grep grep-like rafael-urdaneta-university universidad-rafael-urdaneta uru

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Minigrep

This repository contains the source code of the Minigrep Terminal Program, which is based on the grep Program for Linux, developed by:

## Developer

- Ramón Álvarez (ralvarezdev).

## Programming Languages

Only C++.

## Getting Started
To get started with the Minigrep source code, follow these instructions.

## Installation


  1. Clone this repository to your local machine using the following command:

    ```git clone https://github.com/ralvarezdev/uru-programming-1-minigrep```

  2. Change your Current Working Directory to where the Repository was Cloned
  3. There are Two Ways to Compile the Program:

    1. With G++ (You must have Installed MinGW Compiler). Use the following command:

      Command for Windows

      ```g++ -o bin\Minigrep.exe src\main.cpp src\lib\filesOp.cpp src\lib\filesOp.h src\lib\input.cpp src\lib\input.h src\lib\rgbColor.cpp src\lib\rgbColor.h```

      Command for Linux

      ```g++ -o bin/Minigrep.exe src/main.cpp src/lib/filesOp.cpp src/lib/filesOp.h src/lib/input.cpp src/lib/input.h src/lib/rgbColor.cpp src/lib/rgbColor.h```

    2. With CMake (You must have Installed CMake and Make). First, Get to the bin Folder inside the Repository. Use the following command:

      Command for Windows

      ```cmake -S ..\ -G "MinGW Makefiles" -B .\ && make```

      Command for Linux

      ```cmake -S ../ -G "MinGW Makefiles" -B ./ && make```


  4. Run the program by clicking the Minigrep.exe 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).


For a Better User Experience, Resize the Terminal Window to Fullscreen

## Commands

### Run
```phraseToHighlight... filePath...``` To Highlight the Phrase

### Change Text Colors
```-c``` Change Background and Foreground Color
```-b``` Change Background Color
```-f``` Change Foreground Color

### Help
```-h``` Help