Allow user to pass in grep pattern

This also disables the search by word, so to search only by word
boundaries, surround the pattern by \< and \>