vokounigor / minigrep

Implementation of a grep-like program in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minigrep

Implementation of a grep-like program in Rust following the Rust Book example.

Running

To run the program, run:

cargo run -- [file_path] [query] <[-c]>

-c is optional, it runs a case-insensitive search. Same can be achieved running:

IGNORE_CASE=1 cargo run -- [file_path] [query]

Test

To run the tests, run

cargo test

About

Implementation of a grep-like program in Rust


Languages

Language:Rust 100.0%