textproc/agrep 3.41.5 FreeBSD
Approximate grep (fast approximate pattern-matching tool)
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ISCL
- Categories
- textproc
- Package size
- 378.2 KiB, 547.4 KiB installed
Description
Agrep is a tool for fast text searching allowing errors.
The three most significant features of agrep that are not supported by the grep family are
- the ability to search for approximate patterns; for example, "agrep -2 homogenos foo" will find homogeneous as well as any other word that can be obtained from homogenos with at most 2 substitutions, insertions, or deletions. "agrep -B homogenos foo" will generate a message of the form best match has 2 errors, there are 5 matches, output them? (y/n)
- agrep is record oriented rather than just line oriented; a record is by default a line, but it can be user defined; for example, "agrep -d '^From ' 'pizza' mbox" outputs all mail messages that contain the keyword "pizza". Another example: "agrep -d '$$' pattern foo" will output all paragraphs (separated by an empty line) that contain pattern.
- multiple patterns with AND (or OR) logic queries. For example, "agrep -d '^From ' 'burger,pizza' mbox" outputs all mail messages containing at least one of the two keywords (, stands for OR). "agrep -d '^From ' 'good;pizza' mbox" outputs all mail messages containing both keywords.
LICENSE: no redistribution for profit
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/agrep | 3.41.5 |
| DragonFly | textproc/agrep | 3.41.5 |
| MidnightBSD | textproc/agrep | 2.04_3 |
| HardenedBSD | textproc/agrep | 3.41.5 |
| GhostBSD | textproc/agrep | 3.41.5 |
Install
Binary package:
pkg install agrep
From the ports tree:
cd /usr/ports/textproc/agrep/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= agrep>0:textproc/agrep
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.41.5 | 3.41.5 | 2.04_2 | 3.41.5 | 3.41.5 |
| FreeBSD:14:quarterly | 3.41.5 | 3.41.5 | n/a | 3.41.5 | 3.41.5 |
| FreeBSD:15:latest | 3.41.5 | 3.41.5 | n/a | 3.41.5 | 3.41.5 |
| FreeBSD:15:quarterly | 3.41.5 | 3.41.5 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.41.5 | 3.41.5 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 3
Required by 2
Configuration
Options name: textproc_agrep
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- gmake
- Service scripts
- none
Files
pkg-plist 6
- bin/agrep
- share/doc/agrep/AGREP_A_FAST_ APPROXIMATE_PATTERN-MATCHING_TOOL_1992_agrep2.pdf
- share/doc/agrep/FAST_TEXT_ SEARCHING_WITH ERRORS_199106_ agrep1.pdf
- share/doc/agrep/GLIMPSE_A_Tool_to_Search_Through_Entire_File_Systems_199310_glimpse.pdf
- share/doc/agrep/README
- share/doc/agrep/agrep-and-glimpse-docs.zip
distinfo 2
| File | Size | SHA256 |
|---|---|---|
| Wikinaut-agrep-3.41.5-7b7f350_GH0.tar.gz | 3.652802e+06 | d3d5bfd631359056d47ed2c8c37dc5f661c31074ae525a5386d9a0f455136123 |
| agrep-patch-ansi1 | 22304 | a6161b483c144f3791ba66e9fa25c92423570d9d11c576e22e3f221f02d13ce7 |
Commit history 0
No commits in the history this site was built from.