A command line tool to search for contents in a file, written in Rust.
- Clone this repo.
- Make sure rust is installed on your machine.
- Run
cargo run -- <query> <file_path>
to run the tool. For example,cargo run -- to poem.txt
. - Set IGNORE_CASE environment variable to do a case insensitive search. For example,
IGNORE_CASE=1 cargo run -- to poem.txt