Your question doesn't really make sense. (
Unknown array??) However, if you're using
grep to find the element, then you can use
grep to find everything
but the element and use that. Just negate the matching requirements and you should be find.
Originally posted as a Categorized Answer.