This is a small implementation of grep command line tool in rust (see References).
Unlike grep this implementation does not support regex.
For complete implementation of grep in rust, check ripgrep.
For running or installing graby, install rust.
To add graby run the following cargo command in your project directory:
cargo add graby
or manually add following in Cargo.toml file.
graby = "0.1.0"
To build graby from source you need to install rust on your device and run the following commands:
git clone https://github.com/Raghav-Bell/graby.git
cd graby
cargo run -- --help
For searching QUERY pattern in FILE_PATH use following command:
graby --q QUERY --f FILE_PATH
For more options run
graby --help
or check documentation.
It is licensed under MIT.
All small or large contributions are welcomed .