#!/bin/bash

ary=("sakura" "tsubaki")
echo "Before"
for i in `seq 1 ${#ary[@]}`
do
  echo ary\[`expr $i - 1`\] = ${ary[`expr $i - 1`]}
done
echo "After1"
ary=("${ary[@]}" "kiku")
for i in `seq 1 ${#ary[@]}`
do
  echo ary\[`expr $i - 1`\] = ${ary[`expr $i - 1`]}
done
echo "After2"
ary=("momiji" "${ary[@]}")
for i in `seq 1 ${#ary[@]}`
do
  echo ary\[`expr $i - 1`\] = ${ary[`expr $i - 1`]}
done

