#mini-grep #string-search #clone #tutorial #file #ignore-case #txt

bin+lib grep-clone

A mini grep clone from the Rust-lang official tutorial

1 unstable release

0.2.1 Apr 2, 2023
0.2.0 Apr 2, 2023
0.1.2 Apr 2, 2023
0.1.1 Apr 2, 2023
0.1.0 Apr 2, 2023

#1 in #ignore-case

30 downloads per month

MIT license

6KB
101 lines

Grep Clone

Implementation of https://doc.rust-lang.org/book/ch12-00-an-io-project.html

This is a toy project that works by supporting searching for a string in a file.

Installation

cargo install grep-clone

Usage

grep-clone string file.txt

It also supports ignore-case

grep-clone string file.txt -i

Or

grep-clone string file.txt --ignore-case

Or

export IGNORE_CASE=true
grep-clone string file.txt

lib.rs:

Grep Clone

A mini version of grep that supports searching a file with a substring.

It's only implemented here for learning purposes.

Project originally specified at: https://doc.rust-lang.org/book/ch12-00-an-io-project.html

No runtime deps