Addressing Mark's comments: grep -q and exit on error