BSD Ports

textproc/agrep 2.04_3 MidnightBSD

Approximate grep (fast approximate pattern-matching tool)

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
agrep
Categories
textproc

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

Install

Binary package:

mport install agrep

From mports:

cd /usr/mports/textproc/agrep && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	agrep>0:textproc/agrep

Dependencies

Required by 2

Configuration

Options name: textproc_agrep

OptionDefaultDescription
DOCSoff
USES
tar:Z
Service scripts
none

Files

Manual pages 1
  • agrep(1)
pkg-plist 4
  • bin/agrep
  • man/man1/agrep.1.gz
  • share/doc/agrep/agrep.algorithms
  • @dirrm share/doc/agrep
distinfo 3
FileSizeSHA256
agrep-2.04.tar.Z6235131275a2fee28fb8966e1978d26fe8113b61ce49b39e68ddf4cad3964db72d5f8
agrep.ps.1.Z7405534c342b546c7609a8e87863d94cb4927ec60e6ccd4b5e5324ac7cca4793b3ce2
agrep.ps.2.Z4154459f8a9e019e6c1c01c05abd09ce319f9af96b676537039819575f66a60b2e8b0
Master sites 3
  • GENTOO
  • ftp://ftp.cs.arizona.edu/agrep/
  • ftp://ftp.cs.arizona.edu/agrep/:doc