Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Grep
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===agrep=== {{main|agrep}} '''agrep''' (approximate grep) is an [[open-source software|open-source]] [[approximate string matching]] program, developed by [[Udi Manber]] and Sun Wu between 1988 and 1991,<ref>{{cite conference |title=Agrep -- a fast approximate pattern-matching tool |last1=Wu |first1=Sun |last2=Manber |first2=Udi |date=20β24 January 1992 |location=San Francisco, California |conference=1992 Winter USENIX Conference |citeseerx = 10.1.1.89.5424}}</ref> for use with the [[Unix]] operating system. It was later ported to [[OS/2]], [[DOS]], and [[Microsoft Windows|Windows]]. ''a''grep matches even when the text only ''approximately'' fits the search pattern.<ref name=eGrep.SunX>{{cite magazine |magazine=Sun Expert|author=S. Lee Henry |date=June 1998 |pages=35β26|title=Proper Searching}}</ref> This following invocation finds <code>netmasks</code> in file <code>myfile</code>, but also any other word that can be derived from it, given no more than two substitutions. <pre>agrep -2 netmasks myfile</pre> This example generates a list of matches with the closest, that is those with the fewest, substitutions listed first. The command flag <code>-B</code> means "best": <pre>agrep -B netmasks myfile</pre>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)