| Crates.io | minigrepf |
| lib.rs | minigrepf |
| version | 0.1.3 |
| created_at | 2023-01-04 16:22:14.526623+00 |
| updated_at | 2023-01-05 15:12:23.261783+00 |
| description | A tiny grep clone to search a single file, with an IGNORE_CASE environment variable option. |
| homepage | |
| repository | https://github.com/Fittiby/minigrepf |
| max_upload_size | |
| id | 750933 |
| size | 7,008 |
This is the simple minigrepf command line tool from the book "The Rust Programming Language,"
chapter 12.
Usage:
$ ls
poem.txt minigrepf
$ cat poem.txt
I'm nobody! Who are you?
Are you nobody, too?
Then there's a pair of us - don't tell!
They'd banish us, you know.
How dreary to be somebody!
How public, like a frog
To tell your name the livelong day
To an admiring bog!
$ ./minigrepf to poem.txt
Are you nobody, too?
How dreary to be somebody!
$ IGNORE_CASE=1 ./minigrepf to poem.txt
Are you nobody, too?
How dreary to be somebody!
To tell your name the livelong day
To an admiring bog!