lilgrep
A miniature version of the grep command line tool built with Rust.
Search for a specific word within a file, and the entire line(s) containing that word will be returned to you.
Requirements:
- Must have Rust installed on your OS
|
Basic usage
- Search for the word what within the file
poem.txt:
Case sensitivity
By default, the search is case sensitive.
If "What" exists but not the search query "what", nothing will be returned.
This is dependant upon this environment variable:
CASE_INSENSITIVE=
- To change this, all you need to do is run:
- To remove:
Directing the output to a file
- Search for every case of "what" within
poem.txt, and direct the result tooutput.txt