Crates.io | grepox |
lib.rs | grepox |
version | 0.2.19 |
source | src |
created_at | 2022-03-31 13:36:43.372166 |
updated_at | 2022-11-06 02:43:30.331198 |
description | Minimalist's grep written in Rust. |
homepage | https://github.com/Vonr/grepox |
repository | https://github.com/Vonr/grepox |
max_upload_size | |
id | 559608 |
size | 26,679 |
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: 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.txt
Options:
-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
-m=<NUM> Stop after NUM matches
-c Colorizes output
-h Print this help and exit
seq 10000 | grepox '^\d{1,3}$'
)