https://github.com/guerinoni/perg
Grep implementation in rust.
https://github.com/guerinoni/perg
grep grep-like hacktoberfest linux rust rust-application search
Last synced: 7 months ago
JSON representation
Grep implementation in rust.
- Host: GitHub
- URL: https://github.com/guerinoni/perg
- Owner: guerinoni
- License: mit
- Created: 2021-02-13T11:07:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T10:20:04.000Z (about 1 year ago)
- Last Synced: 2025-03-28T02:53:07.587Z (about 1 year ago)
- Topics: grep, grep-like, hacktoberfest, linux, rust, rust-application, search
- Language: Rust
- Homepage:
- Size: 62.5 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# perg
[](https://github.com/guerinoni/perg/actions/workflows/CI.yml)
[](https://codecov.io/gh/guerinoni/perg)
Grep implementation in rust.
## Features
- [x] search in single file.
- [x] show line number (-n or --line-number)
- [x] ignore case sensitive (-i or --ignore-case)
- [x] search in more files (i.e. `perg file.txt file.txt`)
- [x] search from stdin (i.e. `perg -` or `perg lol -`)
- [x] search from stdin with pipe (i.e. `cat ./Cargo.toml | perg author`)
- [x] search in a directory.
- [x] search recursive (-r or --recursive)
- [x] search recursive following symlink (-R or --dereference-recursive)
- [x] exclude some dir (--exclude-dir=folder)
## Contributing
Any helps or suggestions will be appreciated.