Crates.io | peppergrep |
lib.rs | peppergrep |
version | 0.1.1 |
source | src |
created_at | 2024-08-08 10:41:58.438865 |
updated_at | 2024-08-08 12:32:04.985744 |
description | A simple grep utility written following the 12th chapter of the Rust book. Some little modifications were made. |
homepage | https://github.com/pepperjackdev/peppergrep/tree/master |
repository | https://github.com/pepperjackdev/peppergrep/tree/master |
max_upload_size | |
id | 1329416 |
size | 5,725 |
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.
You can install this simple utility via cargo install
:
cargo install peppergrep
If the installation completes successfully, you're all set to use peppergrep!
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;
To uninstall this utility, just run:
cargo uninstall peppergrep