Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vonr/grepox
Minimalist's grep written in Rust, inspired by ripgrep.
https://github.com/vonr/grepox
grep minimal rewrite rust
Last synced: about 1 month ago
JSON representation
Minimalist's grep written in Rust, inspired by ripgrep.
- Host: GitHub
- URL: https://github.com/vonr/grepox
- Owner: Vonr
- License: unlicense
- Created: 2022-03-27T07:59:21.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T05:57:12.000Z (about 1 year ago)
- Last Synced: 2024-12-01T01:28:43.331Z (about 1 month ago)
- Topics: grep, minimal, rewrite, rust
- Language: Rust
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grepox
[![Crates.io](https://img.shields.io/crates/v/grepox)](https://crates.io/crates/grepox)### Minimalist's grep written in Rust, inspired by ripgrep.
### Disclaimer
This project was made as a learning project.
That being said, I do try my best to make the code as good as I know about and may occasionally revisit with optimizations.
However, it is unlikely that large feature updates are made.
### Usage
```
Usage: grepox [OPTION]... QUERY [FILES]...
Search for QUERY in FILES.
Example:
# Finds the phrase 'hello world' case-insensitively in file1.txt
# and file2.txt and prints matches in color
grepox -ci 'hello world' file1.txt file2.txtOptions:
-i Ignore case distinctions in QUERY
-n Print line number with output lines
-v Invert match: select non-matching lines
-F String searching, disables regex
-x Only match whole lines, only works with -F
-w Only match whole words, only works with -F
-U No unicode, can speed up regular expressions
-m= Stop after NUM matches
-c Colorizes output
-h Print this help and exit
```### Features
+ Regex support
+ Reads from stdin so users can pipe programs' outputs into it (e.g. `seq 10000 | grepox '^\d{1,3}$'`)
+ Customizable using command flags
+ Colors