hgrep (textproc/hgrep) Updated: 2 weeks ago Add to my watchlist

Human-friendly Grep

hgrep is a grep tool to search files with given pattern and print the matched code snippets with human-friendly syntax highlighting. In short, it's a fusion of bat and grep or other alternatives like ripgrep. This is similar to -C option of grep command, but hgrep focuses on human readable outputs. hgrep is useful to survey the matches with contexts around them. When some matches are near enough, hgrep prints the lines within one code snippet. Unlike grep -C, hgrep adopts some heuristics around blank lines to determine efficient number of context lines.

Version: 0.3.7 License: MIT GitHub
Displaying statistics for 1,047 users who made submissions during: until

Statistics for selected duration

2024-Apr-07 to 2024-May-07


Total Installations 1
Requested Installations 1


macOS Versions

Loading Chart

Port Versions

Loading Chart



Xcode Versions

Loading Chart

CLT Versions

Loading Chart



Variants table

Variants Count


Monthly Statistics

Can remain cached for up to 24 hours