Implement grep command, without regexp.