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. As an optional feature, hgrep has builtin grep implementation thanks to ripgrep as library. It's a subset of rg command. And it's faster when there are so many matches since everything is done in the same process.
OS | Architecture | Version |
---|---|---|
NetBSD 10.0 | aarch64 | hgrep-0.3.7.tgz |
NetBSD 10.0 | aarch64 | hgrep-0.3.3.tgz |
NetBSD 10.0 | aarch64 | hgrep-0.3.4.tgz |
NetBSD 10.0 | aarch64 | hgrep-0.3.7.tgz |
NetBSD 10.0 | earmv7hf | hgrep-0.3.7.tgz |
NetBSD 10.0 | earmv7hf | hgrep-0.3.4.tgz |
NetBSD 10.0 | earmv7hf | hgrep-0.3.7.tgz |
NetBSD 10.0 | i386 | hgrep-0.3.7.tgz |
NetBSD 10.0 | i386 | hgrep-0.3.3.tgz |
NetBSD 10.0 | i386 | hgrep-0.3.4.tgz |
NetBSD 10.0 | i386 | hgrep-0.3.7.tgz |
NetBSD 10.0 | powerpc | hgrep-0.3.4.tgz |
NetBSD 10.0 | x86_64 | hgrep-0.3.7.tgz |
NetBSD 10.0 | x86_64 | hgrep-0.3.3.tgz |
NetBSD 10.0 | x86_64 | hgrep-0.3.4.tgz |
NetBSD 10.0 | x86_64 | hgrep-0.3.7.tgz |
NetBSD 9.0 | aarch64 | hgrep-0.3.3.tgz |
NetBSD 9.0 | earmv7hf | hgrep-0.3.7.tgz |
NetBSD 9.0 | earmv7hf | hgrep-0.3.4.tgz |
NetBSD 9.0 | i386 | hgrep-0.3.7.tgz |
NetBSD 9.0 | i386 | hgrep-0.3.3.tgz |
NetBSD 9.0 | i386 | hgrep-0.3.4.tgz |
NetBSD 9.0 | i386 | hgrep-0.3.7.tgz |
NetBSD 9.0 | powerpc | hgrep-0.3.4.tgz |
NetBSD 9.0 | x86_64 | hgrep-0.3.7.tgz |
NetBSD 9.0 | x86_64 | hgrep-0.3.3.tgz |
NetBSD 9.0 | x86_64 | hgrep-0.3.4.tgz |
NetBSD 9.0 | x86_64 | hgrep-0.3.7.tgz |
NetBSD 9.3 | x86_64 | hgrep-0.3.7.tgz |
NetBSD 9.3 | x86_64 | hgrep-0.3.7.tgz |
Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.
The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.
Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.
Problem reports, updates or suggestions for this package should be reported with send-pr.