#!/bin/bash a=(Hallo dies ist ein Array) a+=(Und das eine Erweiterung) i=0 while [ $i -lt 9 ] do echo "${a[$i]}" i=$(($i+1)) done for s in "${a[@]}" do echo "$s" done