greycat 1417201908 learn Check whether a value is one of an array's elements: found=0; for i in "${arr[@]}"; do if [[ $i = "$value" ]]; then found=1; break; fi; done