textproc/hgrep - The NetBSD Packages Collection

Grep with human-friendly search output

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.

Build dependencies

lang/rust pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

(none)

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64hgrep-0.3.3.tgz
NetBSD 10.0aarch64hgrep-0.3.2.tgz
NetBSD 10.0aarch64hgrep-0.3.3.tgz
NetBSD 10.0earmv7hfhgrep-0.3.3.tgz
NetBSD 10.0earmv7hfhgrep-0.3.2.tgz
NetBSD 10.0earmv7hfhgrep-0.3.3.tgz
NetBSD 10.0i386hgrep-0.3.3.tgz
NetBSD 10.0i386hgrep-0.3.3.tgz
NetBSD 10.0x86_64hgrep-0.3.3.tgz
NetBSD 10.0_BETAx86_64hgrep-0.3.3.tgz
NetBSD 9.0aarch64hgrep-0.3.3.tgz
NetBSD 9.0aarch64hgrep-0.3.2.tgz
NetBSD 9.0aarch64hgrep-0.3.3.tgz
NetBSD 9.0earmv7hfhgrep-0.3.3.tgz
NetBSD 9.0earmv7hfhgrep-0.3.2.tgz
NetBSD 9.0earmv7hfhgrep-0.3.3.tgz
NetBSD 9.0i386hgrep-0.3.3.tgz
NetBSD 9.0i386hgrep-0.3.3.tgz
NetBSD 9.0x86_64hgrep-0.3.3.tgz
NetBSD 9.0x86_64hgrep-0.3.3.tgz
NetBSD 9.3x86_64hgrep-0.3.3.tgz
NetBSD 9.3x86_64hgrep-0.3.3.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.

Available build options

(none)

Known vulnerabilities

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.