Use grep options to optimize your grepping.