Re: Bash Excersize

#!/bin/bash

l=\$(ls)

for x in \$l
do
    if [ "\$x" != "all.sh" ]
    then
        if [ "\$x" != "output.txt" ]
        then
            /bin/bash "\$x" >> output.txt
        fi
    fi
done
#!/bin/bash

a=(Hallo Welt)
a+=(koennte man auch sagen)

i=0
while [ \$i -lt 5 ]
do
    echo "\${a[\$i]}"
    i=\$((\$i+1))
done

for x in \$a
do
    echo x
done
#!/bin/bash

l=\$(ls)

for x in \$l
do
    echo \$x
done
#!/bin/bash

read -p "name: " name
echo "\$name"

if [ "\$name" == "David Vajda" ]
then
    echo "Es koennte sich bei ihnen um mich handeln"
elif [ "\$name" == "tux" ]
then
    echo "Linux User?"
else
    echo "Wuesste gerade nicht"
fi
#!/bin/bash

read -p "name: " name
echo "\$name"
#!/bin/bash

echo "#!/bin/bash"
echo "... die shebang"
#!/bin/bash

var1="Hallo"
var2="Hallo Welt"

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

unset var1
unset var2

hallo="Hallo"
hallololo="Hallo Welt"

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

i=0

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