Implemented grep support

This is needed for gitlab code search support.