yeah..my "agrep" doesnt even have a -y option..but i do have fgrep and egrep..whatever those are.
watson540@
Myth ~/Downloads $ eix agrep
-- Invalid line in /etc/portage/package.keywords(639): "="
Can't read category.
-- Invalid line in /etc/portage/package.keywords(652): "="
Can't read category.
-- Invalid line in /etc/portage/package.keywords(911): "="
Can't read category.
-- Invalid line in /etc/portage/package.keywords(993): "="
Can't read category.
[i] app-text/agrep
Available versions: 2.04
Installed versions: 2.04(04:19:11 PM 01/27/2010)
Homepage:
ftp://ftp.cs.arizona.edu/agrep/README
Description: agrep is a tool for the fast searching of text allowing for errors in the search pattern.
watson540@
Myth ~/Downloads $ agrep --help
agrep: illegal option --
usage: agrep [-#cdehiklnpstvwxBDGIS] [-f patternfile] pattern [files]
summary of frequently used options:
-#: find matches with at most # errors
-c: output the number of matched records
-d: define record delimiter
-h: do not output file names
-i: case-insensitive search, e.g., 'a' = 'A'
-l: output the names of files that contain a match
-n: output record prefixed by record number
-v: output those records containing no matches
-w: pattern has to match as a word, e.g., 'win' will not match 'wind'
-B: best match mode. find the closest matches to the pattern
-G: output the files that contain a match
watson540@
Myth ~/Downloads $ agrep -Byn "agrep" "xmltv.xml"
best match has 1 error, there are 113 matches, output them? (y/n)n
watson540@
Myth ~/Downloads $