Practice project from The Rust Programming Language, Chapter 12. The project is to make a mini version
of the grep
command line utility
cargo run -- searchstring filename.txt
You can ignore casing by specifying an environment variable
MINIGREP_IGNORE_CASE=1 cargo run -- searchstring filename.txt