1 unstable release
0.2.1 | Apr 2, 2023 |
---|---|
0.2.0 |
|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#29 in #mini-grep
22 downloads per month
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