| Crates.io | chap_grrs |
| lib.rs | chap_grrs |
| version | 0.1.1 |
| created_at | 2025-02-14 03:49:50.899149+00 |
| updated_at | 2025-02-14 04:09:01.076008+00 |
| description | A simple command line tool for searching files, line-by-line, with a keyword |
| homepage | https://github.com/Binkersss/GRRS |
| repository | https://github.com/Binkersss/GRRS |
| max_upload_size | |
| id | 1555323 |
| size | 40,704 |
This is a command line program that allows for searching a file, line by line, for all instances of a keyword.
With Cargo installed, you may run cargo install chap_grrs
~/$ chap_grrs -- let src/main.rs
let bar = indicatif::ProgressBar::new_spinner();
let args = Cli::parse();
let file = std::fs::File::open(&args.path).with_context(|| format!("could not read file '{}'", args.path.display()))?;
let mut reader = std::io::BufReader::new(file);
let mut line = String::new();