BSD Ports

textproc/the_silver_searcher 2.2.0p2 OpenBSD

code searching tool, with a focus on speed (ag)

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Jeremie Courreges-Anglas <[email protected]>
Categories
textproc

Description

The silver searcher (also known as ag) is a fast text searching tool similar to grep or ack. It performs faster than ack, yet is also aware of ignore files of git and mercurial repositories and does not search files listed in ignore files. It further utilises threads and advanced features of PCRE to further improve performance.

* Searching for literals (no regex) uses Boyer-Moore-Horspool strstr. * Files are mmap()ed instead of read into a buffer. * Regex searches use PCRE 8.21+'s JIT compiler. * Ag calls pcre_study() before executing the regex on a jillion files. * Instead of calling fnmatch() on every pattern in your ignore files, non-regex patterns are loaded into an array and binary searched. * Ag uses Pthreads to take advantage of multiple CPU cores and search files in parallel.

In the other systems

SystemPortVersion
OpenBSDtextproc/the_silver_searcher2.2.0p2
FreeBSDtextproc/the_silver_searcher2.2.0_2
NetBSDtextproc/the_silver_searcher2.2.0nb1
HardenedBSDtextproc/the_silver_searcher2.2.0_2
GhostBSDtextproc/the_silver_searcher2.2.0_2

Install

Binary package:

pkg_add the_silver_searcher

From the ports tree:

cd /usr/ports/textproc/the_silver_searcher && make install

Dependencies

Run dependencies 2

No port depends on this one.