month=("JAN" "FEB" "MAR" "APR" "MAY" "JUN") for i in ${month[@]} do echo -e "Month name is: c" echo "$i" done echo echo -e "Total Month are: c" echo "${#month[@]}" echo