An implementation of grep in Rust. This project was inspired by the mini project in "The Rust Book". I decided I wanted to expand on the idea and try to fully write grep using Rust as a way to increase my knowledge of both. All credit for grep goes to Ken Thompson & AT&T Bell Laboratories. This project is licensed under GPLv3 which you can find here.
I have made it a point of emphasis to keep the usage of grepRS identical to the usage of grep so far. My hope is to allow for grepRS to be used without having to learn anything new.
As of right now only unix is fully supported and this project may not be fully functional on macOS or Windows. However, I fully plan to support both in the future.
greprs [options...] pattern [sources...]
A source is a file or stream such as stdin.
There are no restrictions on where options must be given in the command.
greprs --ignore-case pattern source # valid
greprs pattern source --ignore-case # also valid
If only one non-option argument is given it is interpreted as a pattern and stdin will be used as the source for content to search in.
Found a bug? Hit me up here:
- Email: cody.weaver@colorado.edu
- GitHub: CODYJEWELLWEAVER