minigrep-extremq 0.1.0

Example crate from the rustbook.
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 5 items with examples
  • Size
  • Source code size: 4.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • extremq

minigrep

This is a very useful program that lets you search for lines that contain a specific string within a file.

Example usage

I do not know how to compile to an executable right now, so that's an issue.

Search for lines containing "frog":

cargo run -- frog poem.txt
# Outputs "How public, like a frog"

Search for lines containing "you know":

cargo run -- "you know" poem.txt
# Outputs "They'd banish us, you know."

Search for lines containing "to", but case insensitive:

IGNORE_CASE=1 cargo run -- "to" poem.txt
# Outputs 
Are you nobody, too?
How dreary to be somebody!
To tell your name the livelong day
To an admiring bog!