Is there a way to test whether an array contains a specified element?
e.g., something like:
array=(one two three) if [ \"one\" in ${array} ]; then ... f
OPTIONS=('-q','-Q','-s','-S') find="$(grep "\-q" <<< "${OPTIONS[@]}")" if [ "$find" = "${OPTIONS[@]}" ]; then echo "arr contains -q" fi