Possible Duplicate:
Bash: check if an array contains a value
i have list like
list = ['pic1','pic2','pic3'];
i am in array like
for a in /dir/star
if(a is in list then skip the loop)
do
echo "hello";
done
I want to skip the loop if element is in list