1 unstable release

new 0.1.0 Mar 7, 2025

#44 in #text-encoding

Download history 51/week @ 2025-03-01

55 downloads per month

Apache-2.0

11KB
170 lines

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

Dependencies

~4MB
~128K SLoC