A Rust implementation of GNU Grep. This project is an initial release and may contain bugs.
cargo install uu_grep
Or use cargo-binstall to install a pre-built binary:
cargo binstall uu_grep
You can try grep directly in your browser on the uutils playground.
Arguments (and a full command) can be passed through the URL via the cmd query parameter, for example:
printf 'š rocket\nš°ļø satellite\nš moon\nā star\n' | grep š
Download Rust at: https://rustup.rs/
# Check out this repository git clone https://github.com/uutils/grep cd grep # Build a release version cargo build --release # Run! ./target/release/grep --help # Run tests (if needed; after making changes) cargo test
This project uses pre-commit; run pre-commit install to enable the git hooks.
- Does not take
LANG, etc., into account for handling file encodings (non-UTF8 matches are treated as binary) - No localization support yet
- Performances need to be improved
Below is the evolution of how many GNU tests uutils passes.
To contribute to uutils, please see CONTRIBUTING.
uutils is licensed under the MIT License - see the LICENSE file for details
GNU Grep is licensed under the GPL 3.0 or later.