This is an implementation of the minigrep project from the Rust book. It is a simple clone of the grep
command.
cargo run -- to poem.text
- case sensitive searchcargo run -- to poem.text --ignore-case
- case insensitive searchcargo run -- to poem.text -i
- case insensitive searchIGNORE_CASE=0 cargo run -- to poem.txt
- case sensitive search using environment variable (env variable takes precendence)IGNORE_CASE=1 cargo run -- to poem.txt
- case insensitive search using environment variable (env variable takes precendence)