in reply to How do I find the position of an element in an array?

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.

  • Comment on Re: how do I find the position of an element in an unknown array