#mini-grep #search #search-file #tool #pattern #case-sensitive #line

bin+lib minigrep_vbomfim

A simple grep tool written in Rust

2 unstable releases

0.2.0 Dec 20, 2024
0.1.0 Jun 25, 2020

#1 in #mini-grep

Download history 129/week @ 2024-12-20 1/week @ 2024-12-27 1/week @ 2025-01-03 1/week @ 2025-01-10 59/week @ 2025-02-14

59 downloads per month

MIT/Apache

7KB
146 lines

Minigrep

minigrep is a simple command-line tool written in Rust that searches for a pattern in a file and prints the lines that contain it.

Usage

minigrep <pattern> <file>

Example

minigrep "pattern" file.txt

Features

  • Case-sensitive search
  • Case-insensitive search
  • Search in a file

Dependencies

~1–1.6MB
~30K SLoC