milligrep 1.0.3

Custom simplified implementation of grep
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented0 out of 5 items with examples
  • Size
  • Source code size: 42.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.33 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
  • Homepage
  • jayeshmann/milligrep
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jayeshmann

MilliGrep

Custom simplified implementation of grep

What is grep?

Classic command line tool grep (globally search a regular expression and print).

What is milligrep?

In the simplest use case, milligrep searches a specified file for a specified string. To do so, milligrep takes as its arguments a filename and a string. Then it reads the file, finds lines in that file that contain the string argument, and prints those lines.

This project is built with Rust and uses Cargo as it's package manager.

Install

cargo install milligrep

or Download milligrep.exe from releases

Usage

milligrep.exe 'search_string' 'path/filename.txt'

Default behavior is case-sensitive search, provide 'CASE_INSENSITIVE' environment variable with any value for case-insensitive searches.

CASE_INSENSITIVE=1 milligrep.exe 'search_string' 'path/filename.txt'

Compile from source

Clone this repo

To use

cargo run

Compile binary using

cargo build

You will find it inside 'target' dir

Test

cargo test