#command-line-tool #mini-grep #light #popular #version #utility #search-term

bin+lib minigrep_ag

A light version of the popular command-line utility grep

3 releases

0.1.2 May 17, 2020
0.1.1 May 17, 2020
0.1.0 May 17, 2020

#15 in #popular

MIT license

6KB
90 lines

Program built in Chapter 12 of The Rust Programming Language Book.

Consists of a main.rs file which runs the library code in lib.rs, where the bulk of the logic is kept for easier testing.
Comes with a test file poem.txt.

Options to run:

  • cargo run search-term path-to-file
  • cargo build --release -> builds an executable in target/release/ which can be run standalone

lib.rs:

Minigrep

minigrep is a light version of the popular command-line utility grep

No runtime deps