findtext_textfile 0.1.1

Search text in text file
Documentation

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