Thursday, January 6, 2011

Iterating through an array in bash

locations=( Roppongi Shibuya Ebisu )

for name in ${locations[@]}
do
echo $name
done

No comments:

Post a Comment