findtext_textfile

Crates.iofindtext_textfile
lib.rsfindtext_textfile
version0.1.1
created_at2025-03-07 15:18:11.330427+00
updated_at2025-03-16 02:57:50.768862+00
descriptionSearch text in text file
homepage
repositoryhttps://github.com/nabbisen/findtext-textfile-rs
max_upload_size
id1583217
size31,885
nabbisen (nabbisen)

documentation

README

Find Text in Text File

crates.io Documentation Dependency Status Releases Workflow License

Summary

Search text in text file

Development

First, add dependency:

cargo add findtext_textfile

Usage:

use findtext_textfile::search;

fn awesome_fn(keyword: &str, filepath: &str) {
    let ret = search(keyword, filepath);
}

Executable Usage

Available in Assets in Releases. Cross-platform supported.

findtext_textfile <keyword> <filepath>
# will print out like:
# [charset = UTF-8]
# (2, 1): hej
Commit count: 2

cargo fmt