While Loops and Arrays in Bash

Here’s a simple for loop using an array:

numbers=(one two three)
for x in ${tables[@]}
do
  echo "Number: $x"
done

bash

20 Words

2010-07-19 11:49 +0000