1 unstable release
0.1.4 | Feb 19, 2022 |
---|---|
0.1.3 |
|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#4 in #finds
6KB
91 lines
MiniGrep
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
- Follow Me On Instagram at Pranav Arora
- Lets Get Connected on Linkedin at Pranav Arora
ThankYou!
lib.rs
:
MiniGrep
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
- Follow Me On Instagram at Pranav Arora
- Lets Get Connected on Linkedin at Pranav Arora