Crates.io | globgrep |
lib.rs | globgrep |
version | 0.1.0 |
source | src |
created_at | 2022-10-02 09:49:16.606864 |
updated_at | 2022-10-02 09:49:16.606864 |
description | grep utility written in Rust |
homepage | |
repository | |
max_upload_size | |
id | 678210 |
size | 9,267 |
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*"