A simple grep-like CLI built in Rust, just for fun.
Clone the project
git clone https://github.com/bryan-matheus/minigrep.git
Go to the project directory
cd minigrep
Install dependencies
cargo build
Start the app
cargo run <term> <file>
If you want to run a case insensitive search you will need this environment variable:
CASE_SENSITIVE = true
Test with the current test file under the root of the app.
cargo run frog poem.txt
For case insensitive search we need to export environment variable
export CASE_SENSITIVE=true
Then:
cargo run frog poem.txt
And don't forget to unset the environment variable after use
unset CASE_SENSITIVE
Rust!