minigrep is a minimal implementation of the grep
unix tool implemented in Rust.
It should mirror grep
's basic functionalities.
To build the current development branch:
$ git clone https://github.com/wilkmaia/minigrep.git
$ cd minigrep
$ cargo build # "cargo build --release" for a release build
To build the latest release:
$ curl -sSL -o minigrep-latest.tar.gz https://github.com/wilkmaia/minigrep/archive/0.1.0.tar.gz
$ tar -zxf minigrep-latest.tar.gz
$ cd minigrep-0.1.0
$ cargo build --release
Usage aims to be similar to Unix grep
.
- Input file
minigrep <pattern> <filepath>
minigrep also accepts regular expressions as pattern
.
Our CoC is available here.
All help is welcome. See here our guidelines for community contributions.