8000 GitHub - wilkmaia/minigrep: Minimal implementation of the grep unix tool · GitHub
[go: up one dir, main page]

Skip to content
wilkmaiaPublic

About

Minimal implementation of the grep unix tool

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

Repository files navigation

minigrep

Build Status codecov License:MIT

minigrep is a minimal implementation of the grep unix tool implemented in Rust. It should mirror grep's basic functionalities.

Building

Current development branch

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

Latest release

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

Usage aims to be similar to Unix grep.

Current supported usage methods

  1. Input file
minigrep <pattern> <filepath>

minigrep also accepts regular expressions as pattern.

Code of Conduct

Our CoC is available here.

Contributing

All help is welcome. See here our guidelines for community contributions.

About

Minimal implementation of the grep unix tool

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0