sary is a suffix array library and tools. It provides fast full-text search facilities for text files on the order of 10 to 100 MB using a data structure called a suffix array. It can also search specific fields in a text file by assigning index points to those fields.
Extracted automatically from Sary homepage
brew install sary
The following 2 dependencies will be installed if you install Sary: