Implement '*grep*' family of commands.