#mini-grep #regex #command #command-line #finds #containing #pranav

bin+lib pranav_minigrep

Mini Version of grep regex command. It finds out the given string and returns the line containing it.

1 unstable release

0.1.4 Feb 19, 2022
0.1.3 Feb 19, 2022
0.1.2 Feb 19, 2022
0.1.1 Feb 19, 2022
0.1.0 Feb 19, 2022

#4 in #finds

MIT license

6KB
91 lines

MiniGrep Rust

This is a Command line utility developed in Rust that parses the keyword from the file and outputs the relevant line.


For Rust Developers

Install this binary crate

$cargo install pranav_minigrep


Clone this repo and follow the given usage:

Usage

  • cargo run <keyword> <filename.txt>
  • Setup the CASE_INSENSITIVE environment variable
  • On your PowerShell run the following commands:
$Env CASE_INSENSITIVE=1
cargo run <keyword> <filename.txt>
  • To deactivate the Environment Variable, run the following command:

Remove-Item Env:CASE_INSENSITIVE


ThankYou!


lib.rs:

MiniGrep Rust

This is a Command line utility developed in Rust that parses the keyword from the file and outputs the relevant line.

Install this binary crate

cargo install pranav_minigrep

Usage

  • cargo run <keyword> <filename.txt>
  • Setup the CASE_INSENSITIVE environment variable
  • On your PowerShell run the following commands:
$Env CASE_INSENSITIVE=1
cargo run <keyword> <filename.txt>
  • To deactivate the Environment Variable, run the following command:

Remove-Item Env:CASE_INSENSITIVE


ThankYou!

No runtime deps