grep-like utility to return search results from a premade inverted index