Crates.io | milligrep |
lib.rs | milligrep |
version | 1.0.3 |
source | src |
created_at | 2021-02-24 07:05:29.127872 |
updated_at | 2021-11-26 06:27:06.779278 |
description | Custom simplified implementation of grep |
homepage | https://github.com/jayeshmann/milligrep |
repository | https://github.com/jayeshmann/milligrep |
max_upload_size | |
id | 359833 |
size | 42,915 |
Custom simplified implementation of grep
grep
?Classic command line tool grep
(globally search a regular expression and print).
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.
cargo install milligrep
or Download milligrep.exe
from releases
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'
Clone this repo
cargo run
cargo build
You will find it inside 'target' dir
cargo test