mirror of
https://github.com/uutils/grep.git
synced 2026-06-10 16:15:11 -07:00
52 lines
1.7 KiB
Markdown
52 lines
1.7 KiB
Markdown
[](https://crates.io/crates/uu_grep)
|
|
[](https://discord.gg/wQVJbvJ)
|
|
[](https://github.com/uutils/grep/blob/main/LICENSE)
|
|
[](https://deps.rs/repo/github/uutils/grep)
|
|
|
|
[](https://codecov.io/gh/uutils/grep)
|
|
[](https://codspeed.io/uutils/grep?utm_source=badge)
|
|
|
|
# Grep, now in Rust
|
|
|
|
A Rust implementation of [GNU Grep](https://www.gnu.org/software/grep/).
|
|
This project is an initial release and may contain bugs.
|
|
|
|
## Building
|
|
|
|
Download Rust at: https://rustup.rs/
|
|
|
|
```shell
|
|
# 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
|
|
```
|
|
|
|
## Pre-commit hooks
|
|
|
|
This project uses [pre-commit](https://pre-commit.com); run `pre-commit install` to enable the git hooks.
|
|
|
|
## Known Issues
|
|
|
|
* 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
|
|
|
|
## Contributing
|
|
|
|
To contribute to uutils, please see [CONTRIBUTING](CONTRIBUTING.md).
|
|
|
|
## License
|
|
|
|
uutils is licensed under the MIT License - see the `LICENSE` file for details
|
|
|
|
GNU Grep is licensed under the GPL 3.0 or later.
|