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

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

#2 in #mini-grep

Download history 2/week @ 2024-09-18 2/week @ 2024-09-25 128/week @ 2024-12-18 2/week @ 2024-12-25

130 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–1.7MB
~32K SLoC