11/20/2007

How to loop an array in bash

ids=(3333 3334 3335)
for id in ${ids[@]}
do
echo $id
done

No comments: