In Bash, what is the simplest way to test if an array contains a certain value?
$ myarray=(one two three) $ case "${myarray[@]}" in *"two"*) echo "found" ;; esac found