Implement "--grep" obtion.