#!/bin/bash # https://www.davidvajda.de/viewtopic.php?p=1685#p1685 a=(Super Sache) a+=(ist das) i=0 while [ \$i -lt 4 ] do echo "\${a[\$i]}" i=\$((\$i+1)) done for s in "\${a[@]}" do echo "\$s" done