globgrep 0.1.0

grep utility written in Rust
Documentation
  • Coverage
  • 36.36%
    4 out of 11 items documented1 out of 6 items with examples
  • Size
  • Source code size: 8.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sagidM

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*"