Grep for CMS already exists. MANY versions exist. Ask me directly and I will send you mine. Ask via the list and I will not.