#grep #utility #chapter #following #book #modification #little

bin+lib peppergrep

A simple grep utility written following the 12th chapter of the Rust book. Some little modifications were made.

1 unstable release

0.1.1 Aug 8, 2024
0.1.0 Aug 8, 2024

#1385 in Text processing

MIT license

6KB
100 lines

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

No runtime deps

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy