agrep gives the error agrep: pattern too long (has > 32 chars)
when there is a full stop(.) in the pattern string but not otherwise.
I want to compare(approximately) two strings, so I'm using agrep for that but its giving an error agrep: pattern too long (has > 32 chars)
. But I found out that it doesn't give the error if there is no full stop in the pattern string(why?)
`echo "The quick brown fox jumped over the lazy dog." | agrep -c -4 "The quick brown fox jumped over the lazy dog."`
expected output is 1 instead it gives an error:
agrep: pattern too long (has > 32 chars)
it works if I remove the full stop:
$ echo "The quick brown fox jumped over the lazy dog." | agrep -c -4 "The quick brown fox jumped over the lazy dog"
1