Crate pranav_minigrep

Source
Expand description

§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!

Structs§

Config

Functions§

run
search