minigrepf

Crates.iominigrepf
lib.rsminigrepf
version0.1.3
sourcesrc
created_at2023-01-04 16:22:14.526623
updated_at2023-01-05 15:12:23.261783
descriptionA tiny grep clone to search a single file, with an IGNORE_CASE environment variable option.
homepage
repositoryhttps://github.com/Fittiby/minigrepf
max_upload_size
id750933
size7,008
Fitti (Fittiboy)

documentation

README

minigrepf

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!
Commit count: 0

cargo fmt