Avoid multi-line greps on solaris 10