Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if [[ array[3] == ENDSINFIVEINTS ]]; then
do stuff
fi
Thanks in advance.
---------- Post updated at 01:48 AM ---------- Previous update was at 01:43 AM ----------
I found this regex...
but not sure how to incorporate it