Re: Bash Excersize

#!/bin/bash

a=(Ja super)
a+=(sagt David Vajda)

i=0
while [ \$i -lt 5 ]
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

read -p "Geben sie ihren Namen ein " name
echo "\$name"

if [ "\$name" == "David Vajda" ]
then
    echo "yes, that's me"
elif [ "\$name" == "Tux Linux" ]
then
    echo "the same as evey time"
else
    echo "Don't exactly know"
fi
#!/bin/bash

read -p "Geben sie ihren Namen ein: " name
echo "\$name"
#!/bin/bash

echo "#!/bin/bash"
#!/bin/bash

var1="Hallo"
var2="Hallo Welt"

echo "\$var1"
echo "\$var2"

unset var1
unset var2

hallololo="Hallo Welt"
hallo="Hallo"

echo "\${hallo}lolo"
#!/bin/bash

i=1
while [ \$i -le 10 ]
do
    echo "Hallo zum \$i."
    i=\$((\$i+1))
done
#!/bin/bash

a=(Ja super)
a+=(sagt David Vajda)

i=0
while [ \$i -lt 5 ]
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

read -p "Geben sie ihren Namen ein " name
echo "\$name"

if [ "\$name" == "David Vajda" ]
then
    echo "yes, that's me"
elif [ "\$name" == "Tux Linux" ]
then
    echo "the same as evey time"
else
    echo "Don't exactly know"
fi
#!/bin/bash

read -p "Geben sie ihren Namen ein: " name
echo "\$name"
#!/bin/bash

echo "#!/bin/bash"
#!/bin/bash

var1="Hallo"
var2="Hallo Welt"

echo "\$var1"
echo "\$var2"

unset var1
unset var2

hallololo="Hallo Welt"
hallo="Hallo"

echo "\${hallo}lolo"
#!/bin/bash

i=1
while [ \$i -le 10 ]
do
    echo "Hallo zum \$i."
    i=\$((\$i+1))
done