In Bash, what is the simplest way to test if an array contains a certain value?
for i in "${array[@]}" do if [ "$i" -eq "$yourValue" ] ; then echo "Found" fi done
For strings:
for i in "${array[@]}" do if [ "$i" == "$yourValue" ] ; then echo "Found" fi done