Allow printing contents of docs with grep command, including limiting to a number of lines.