syntax fixes for grepping output