FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

I am looking for an LTO tape library. Do you have one to spare?
Port details
agrep 2.04_2 textproc on this many watch lists=19 search for ports that depend on this port
NO CDROM NO CDROM: No redistribution for profit
Approximate grep (fast approximate pattern-matching tool)
Maintained by: dinoex@FreeBSD.org search for ports maintained by this maintainer
Port Added: unknown
License: not specified in port


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.

Putting these options together one can ask queries like

agrep -d '$$' -2 '<CACM>;TheAuthor;Curriculum;<198[5-9]>' bib

which outputs all paragraphs referencing articles in CACM between 
1985 and 1989 by TheAuthor dealing with curriculum.  
Two errors are allowed, but they cannot be in either CACM or the year 
(the <> brackets forbid errors in the pattern between them).  

Two technical papers describing agrep are available as:

	agrep.ps.1 is a technical report from June 1991 describing the
	design and implementation of agrep
		ftp://ftp.cs.arizona.edu/agrep/agrep.ps.1.Z

	agrep.ps.2 is a copy of the paper as appeared in the 1992 Winter
	USENIX conference.
		ftp://ftp.cs.arizona.edu/agrep/agrep.ps.2.Z

LICENSE: no redistribution for profit
SVNWeb : Distfiles Availability : PortsMon

This port is required by:

for Run * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

To install the port: cd /usr/ports/textproc/agrep/ && make install clean
To add the package: pkg install textproc/agrep


Configuration Options
===> The following configuration options are available for agrep-2.04_2:
     DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings

Master Sites:
  1. ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/
  2. ftp://ftp.cs.arizona.edu/agrep/

Number of commits found: 26

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
04 Mar 2014 06:51:38
Original commit files touched by this commit  2.04_2
Revision:346994
dinoex search for other commits by this committer
- remove broken MANPREFIX
21 Feb 2014 13:39:49
Original commit files touched by this commit  2.04_2
Revision:345436
ehaupt search for other commits by this committer
Remove trailing whitespaces from category textproc
10 Feb 2014 13:54:28
Original commit files touched by this commit  2.04_2
Revision:343634
ehaupt search for other commits by this committer
According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
28 Dec 2013 06:36:33
Original commit files touched by this commit  2.04_2
Revision:337835
dinoex search for other commits by this committer
- cleanup
28 Oct 2013 20:17:50
Original commit files touched by this commit  2.04_2
Revision:331895
dinoex search for other commits by this committer
- revert r331810
27 Oct 2013 22:29:46
Original commit files touched by this commit  2.04_2
Revision:331810
dinoex search for other commits by this committer
- use STAGEDIR
- use OPTIONS_DEFINE
21 Sep 2013 11:06:04
Original commit files touched by this commit  2.04_2
Revision:327804
dinoex search for other commits by this committer
- fix misplaced NO_STAGE in slaveports and ifdefs
20 Sep 2013 23:17:32
Original commit files touched by this commit  2.04_2
Revision:327773
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
textproc)
26 Jan 2013 16:34:40
Original commit files touched by this commit  2.04_2
Revision:311027
dinoex search for other commits by this committer
- cleanup header
27 Nov 2011 12:47:41
Original commit files touched by this commit  2.04_2
dinoex search for other commits by this committer
- add missing prototypes
- add missing includes
- fix build with clang
Feature safe:   yes
03 Jul 2011 14:40:25
Original commit files touched by this commit  2.04_2
ohauer search for other commits by this committer
-remove MD5
16 Jan 2009 15:12:52
Original commit files touched by this commit  2.04_2
dinoex search for other commits by this committer
- add NO_CDROM
- add COPYRIGHT
- extend Documentation
31 May 2008 05:39:22
Original commit files touched by this commit  2.04_1
dinoex search for other commits by this committer
- fix build with NOPORTDOCS
Reported by:    itetcu
30 May 2008 17:00:27
Original commit files touched by this commit  2.04_1
dinoex search for other commits by this committer
- use DOCSDIR
19 May 2006 04:32:01
Original commit files touched by this commit  2.04_1
dinoex search for other commits by this committer
- cleanup
13 Nov 2005 09:26:50
Original commit files touched by this commit  2.04_1
dinoex search for other commits by this committer
- add SHA checksum
26 Feb 2004 05:48:47
Original commit files touched by this commit  2.04_1
dinoex search for other commits by this committer
- add SIZE
20 Nov 2003 19:22:15
Original commit files touched by this commit  2.04_1
dinoex search for other commits by this committer
- take maintainership
- use DOCSDIR
12 Nov 2003 14:26:19
Original commit files touched by this commit  2.04_1
wosch search for other commits by this committer
Long patterns force a core dump:

$ ./agrep  `perl -e 'print "y" x 240'`  /dev/null
Segmentation fault (core dumped)
27 Jun 2003 04:05:34
Original commit files touched by this commit  2.04_1
kris search for other commits by this committer
Fix missing format string argument and bump PORTREVISION.

Obtained from:  OpenBSD
20 Feb 2003 19:11:26
Original commit files touched by this commit  2.04
knu search for other commits by this committer
De-pkg-comment.
21 Jul 2002 01:56:56
Original commit files touched by this commit  2.04
naddy search for other commits by this committer
* Honor CFLAGS.
* Include proper prototypes; fixes dire warnings on alpha.
08 May 2002 20:58:31
Original commit files touched by this commit  2.04
obrien search for other commits by this committer
To ports@freebsd.org.
05 Feb 2001 16:35:27
files touched by this commit
olgeni search for other commits by this committer
More style fixes for ports/textproc.    
22 Nov 2000 00:17:18
files touched by this commit
obrien search for other commits by this committer
Add $FreeBSD$'s which help me in problem reports.    
08 Oct 2000 07:29:51
files touched by this commit
asami search for other commits by this committer
Convert category textproc to new layout.  

Number of commits found: 26

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
i2pJul 28
i2pJul 28
i2pJul 28
bugzilla44Jul 25
apache22Jul 24
apache22-event-mpmJul 24
apache22-itk-mpmJul 24
apache22-peruser-mpmJul 24
apache22-worker-mpmJul 24
firefoxJul 23
firefox-develJul 23
firefox-esrJul 23
firefox10Jul 23
firefox15Jul 23
firefox3Jul 23

11 vulnerabilities affecting 34 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds


Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 24400
Broken 181
Deprecated 821
Ignore 516
Forbidden 16
Restricted 263
No CDROM 101
Vulnerable 28
Expired 1
Set to expire 808
Interactive 13
new 24 hours 6
new 48 hours9
new 7 days19
new fortnight41
new month106

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.