Rust-lang should be installed in your system.
git clone https://github.com/subhojit777/minigrep.git
cd minigrep
cargo build --release
./target/release/minigrep -<options> nemo find-nemo-the-movie.txt
Example - ./target/release/minigrep -i nemo find-nemo-the-movie.txt
i - Case-insensitive.
w - Exact match.
cargo doc --no-deps --open
cargo test
This is not a drop in replacement for the good old grep-like commands. This is written for the sake of learning Rust-lang.
Actually this is an excersice in the book. I have open sourced this because I have followed a different implementation than what is suggested in the book. TDD followed while writing the helper libraries.
- Case-insensitive search can be done by passing an option.
- Ability to do exact-match search.
- The query is highlighted in the output.
Feedbacks are welcome :)