| Crates.io | findtext_textfile |
| lib.rs | findtext_textfile |
| version | 0.1.1 |
| created_at | 2025-03-07 15:18:11.330427+00 |
| updated_at | 2025-03-16 02:57:50.768862+00 |
| description | Search text in text file |
| homepage | |
| repository | https://github.com/nabbisen/findtext-textfile-rs |
| max_upload_size | |
| id | 1583217 |
| size | 31,885 |
Search text in text file
First, add dependency:
cargo add findtext_textfile
Usage:
use findtext_textfile::search;
fn awesome_fn(keyword: &str, filepath: &str) {
let ret = search(keyword, filepath);
}
Available in Assets in Releases. Cross-platform supported.
findtext_textfile <keyword> <filepath>
# will print out like:
# [charset = UTF-8]
# (2, 1): hej