| Crates.io | xgrepx |
| lib.rs | xgrepx |
| version | 0.1.0 |
| created_at | 2023-03-20 19:50:08.688383+00 |
| updated_at | 2023-03-20 19:50:08.688383+00 |
| description | xgrep is a rust implementation of grep. This is a follow up from the rust book |
| homepage | |
| repository | |
| max_upload_size | |
| id | 815587 |
| size | 11,470 |
Xgrep is an implementation of the famous GREP in rust. GREP which means Globally search a Regular Expression and Print is used to search the contents of a file for a regular expression. This project was built as a step for mastering the RUST programming book. A bigger version has been built by a fellow Rustacean by the name Andrew Gallant in his project called RipGrep.
git clone git@github.com:xpanvictor/xgrep.git
cd xgrep
cargo run query filepath.txt
Where
query: a string to search for in
filepath: a path leading to file to search for
IGNORE_CASE=1 cargo run query filepathEnv:IGNORE_CASE=1; cargo run query filepath.txtcargo run query search_filepath.txt > output_filepath.txt