peppergrep

Crates.iopeppergrep
lib.rspeppergrep
version0.1.1
sourcesrc
created_at2024-08-08 10:41:58.438865
updated_at2024-08-08 12:32:04.985744
descriptionA simple grep utility written following the 12th chapter of the Rust book. Some little modifications were made.
homepagehttps://github.com/pepperjackdev/peppergrep/tree/master
repositoryhttps://github.com/pepperjackdev/peppergrep/tree/master
max_upload_size
id1329416
size5,725
Giacomo De Florio (pepperjackdev)

documentation

https://github.com/pepperjackdev/peppergrep/blob/master/README.md

README

Welcome to peppergrep!

This simple grep utility was made by following the 12th chapter of the Rust Book (formally known as The Rust Programming Language). Some small changes have been made.

Installation

You can install this simple utility via cargo install:

cargo install peppergrep 

If the installation completes successfully, you're all set to use peppergrep!

Usage

To use this utility, just run:

peppergrep <query> <source_file> [--ignore-case / --attend-case]

where query is the string you're looking for, source_file is the path of the file you're searching the query in. --ignore-case and --attend-case are optional arguments that you can specify to force case insensitivity or sensitivity. By default, all searches are case-sensitive. You can override this default behavior by creating an environmental variable called IGNORE_CASE.

On linux, it would be:

IGNORE_CASE = 1

On windows (PowerShell):

$env:IGNORE_CASE = 1;

Uninstall

To uninstall this utility, just run:

cargo uninstall peppergrep
Commit count: 0

cargo fmt