globgrep

Crates.ioglobgrep
lib.rsglobgrep
version0.1.0
sourcesrc
created_at2022-10-02 09:49:16.606864
updated_at2022-10-02 09:49:16.606864
descriptiongrep utility written in Rust
homepage
repository
max_upload_size
id678210
size9,267
Sagid M (sagidM)

documentation

README

The Grep utility written in Rust

How to use

The app take 2 arguments: query search, file pattern. Also, it has a couple of options set up from environment variables. See the examples below:

cargo run -- "fn main" "src/*.rs"
IGNORE_CASE=1 cargo run -- "result" "src/main.rs"
IS_REGEXP=1 cargo run -- "fn.*Result" "src/main*"
IS_REGEXP=1 IGNORE_CASE=1 cargo run -- "fn.*result" "src/main*"

Or if you want to run the binary only:

cargo build
IS_REGEXP=1 IGNORE_CASE=1 ./target/debug/globgrep "fn.*result" "src/main*"
Commit count: 0

cargo fmt