Implement grep argument.