#line #search-query #basic #text #within #file #tool

bin+lib litegrep

A basic tool for searching in files for lines of text, based on a query

2 releases

0.1.2 May 14, 2024
0.1.1 May 13, 2024
0.1.0 May 13, 2024

#698 in Text processing

Download history 338/week @ 2024-05-12 36/week @ 2024-05-19

374 downloads per month

MIT license

6KB
95 lines

Minigrep

This tool is the light version of the grep, developed while studing the rust book. It contains basic functionality for searching within a file from the command line.

Usage

This project uses cargo as the package manager, therefore to run the program:

Run dev

cargo run -- [search query] [filepath] [opts]

Options

The only option available is --case-sensitive. This option enables you to search for words no matter the case of the letters, you can also set it as an environment variable as IGNORE_CASE=true.

Tests

cargo test


lib.rs:

L:itegrep

The purpose of this crate ⚙️ is to learn rust features, and this crate will not be maintained 🚮.

No runtime deps