A grep-like library written in rust
Searching through files
Searching through standard input
Excluding patterns
Printing all lines before the first instance of the pattern
Printing all lines after the first instance of the pattern
ls | grep-rs basicfile1
output: basicfile1.txt
grep-rs text basicfile1.txt
output: The text states .....
ls | grep-rs -e basicfile1
output:
basicfile2.txt
basicfile3.txt
basicfile4.txt
ls | grep-rs -I basicfile3
output:
basicfile1.txt
basicfile2.txt
basicfile3.txt
ls | grep-rs -i basicfile3
output:
basicfile3.txt
basicfile4.txt