in reply to Re^11: Grep Pattern
in thread Grep Pattern

Yes, that's exactly what should be done.

(Not to be more general, though. To be more robust (less error-prone), more self-documenting, etc, etc.)