BSD Ports

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

  1. 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)
  2. 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.
  3. 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

SystemPortVersion
FreeBSDtextproc/agrep3.41.5
DragonFlytextproc/agrep3.41.5
MidnightBSDtextproc/agrep2.04_3
HardenedBSDtextproc/agrep3.41.5
GhostBSDtextproc/agrep3.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.41.53.41.52.04_23.41.53.41.5
FreeBSD:14:quarterly3.41.53.41.5n/a3.41.53.41.5
FreeBSD:15:latest3.41.53.41.5n/a3.41.53.41.5
FreeBSD:15:quarterly3.41.53.41.5n/an/an/a
FreeBSD:16:latest3.41.53.41.5n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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

OptionDefaultDescription
DOCSoffBuild 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
FileSizeSHA256
Wikinaut-agrep-3.41.5-7b7f350_GH0.tar.gz3.652802e+06d3d5bfd631359056d47ed2c8c37dc5f661c31074ae525a5386d9a0f455136123
agrep-patch-ansi122304a6161b483c144f3791ba66e9fa25c92423570d9d11c576e22e3f221f02d13ce7

Commit history 0

No commits in the history this site was built from.