#!/bin/bash
a=("Hallo" "Welt" "sagt" "David" "Vajda")
a+=("Aber" "auch" "das")
i=0
while [ \$i -lt 7 ]
do
echo "\${a[\$i]}"
i=\$((\$i+1))
done
for s in "\${a[@]}"
do
echo "\$s"
done
#!/bin/bash
l=\$(ls)
for s in \$l
do
echo "\$s"
done
#!/bin/bash echo "Hallo"
#!/bin/bash
if [ "\$1" == "David Vajda" ]
then
echo "Das bin ich"
elif [ "\$1" == "Max Mustermann" ]
then
echo "Das ist die Standardaussage"
else
echo "Das ist jemand anderes"
fi
#!/bin/bash
i=0
while [ \$i -lt 10 ]
do
echo "Hallo zum \$((\$i+1))."
i=\$((\$i+1))
done