this question is not the same as Does the shell support sets?
i know lots of script language support list structure, such as python, python, ruby, and javascript, so what about linux shell?
does shell support such syntax?
for i in list:
do
print i
done
i would first to initialize a list, for example:
ListName = [ item1, item2, ..., itemn ]
then iterate over it
is that possible when programming shell scripts?