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
if you just want to check whether an element is in array, another approach
case "${array[@]/one/}" in "${array[@]}" ) echo "not in there";; *) echo "found ";; esac