Reading The Rust Programming Language. It has a project in which you recreate a simple version of grep
. I simply added in highlighting of the string that it matches to. Also, the line number is printed as well.
cargo run How poem.txt
cargo run ";" src/lib.rs