This project uses multi-threading in Rust to search a directory for lines matching a particular regular expression, format them, and output them to the console.
- Clone the git repository:
git clone https://github.com/your_username/grep-rs.git
- Move into the new directory:
cd grep-rs
- Download dependencies:
cargo install --path .
Usage: grep-rs [OPTIONS] <DIR> <REGEX>
Arguments:
<DIR> dir_path
<REGEX> regex
Options:
-r, --recursive
-h, --help Print help
-V, --version Print version