#!/bin/bash a=(Hallo welt) a+=(sage ich) i=0 while [ \$i -lt 4 ] do echo "\${a[\$i]}" i=\$((\$i+1)) done for s in "\${a[@]}" do echo "\$s" done