minigrep_macano953 0.1.1

A fun grep tool written as my first incursion into Rust. Not intended to be inherited and used in production code
Documentation
  • Coverage
  • 33.33%
    3 out of 9 items documented2 out of 5 items with examples
  • Size
  • Source code size: 4.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • macano953

minigrep

Installation

Ensure Rust is installed.

Clone the repo:

git clone https://github.com/macano953/minigrep_macano953

cd into the cloned directory and run:

cargo install --path .

NOTE: This will install the binary in $HOME/.cargo/bin by default

Usage

minigrep takes two arguments: a query (the text to search) and the filename in which to look for the query. If the file contains the query provided, minigrep will print out the entire matching line.

Example:

minigrep "some text to search" some-file.txt

By default, the search text will be case sensitive. To enable case insensitive search, set the CASE_INSENSITIVE environment variable. Example:

CASE_INSENSITIVE=1 minigrep "TO" poem.txt