| Crates.io | martinrepo-findr |
| lib.rs | martinrepo-findr |
| version | 0.2.0 |
| created_at | 2025-06-02 10:20:39.980875+00 |
| updated_at | 2025-06-02 10:20:39.980875+00 |
| description | A tool to search files |
| homepage | https://github.com/MartinRepo/FindR |
| repository | https://github.com/MartinRepo/FindR |
| max_upload_size | |
| id | 1697826 |
| size | 24,906 |
A fast and memory-efficient command-line tool to search for patterns in files, written in Rust.
cargo install martinrepo-findr
git clone https://github.com/MartinRepo/FindR.git
cd findr
cargo install --path .
findr <pattern> <path>
pattern: The text pattern to search forpath: Path to the file to search inSearch for "hello" in a file:
findr hello file.txt
Search for "error" in a log file:
findr error server.log
FindR uses buffered reading to process files line by line, making it memory efficient even for very large files. It reads the input file in chunks rather than loading the entire file into memory at once.
cargo build
cargo test
cargo run -- <pattern> <path>
This project is licensed under the MIT License - see the LICENSE file for details.