/media/sda-magnetic/david/Dokumente-15/php-sql-bash-exercise/2023-07-20-bash/out.txt


all.sh
#!/bin/bash 

rm out.txt

l=$(ls)

for s in $l
do
    echo "$s" >> out.txt
    if [ "$s" == "all.sh" ]
    then
        cat all.sh >> out.txt
    elif [ "$s" == "ifthenelse.sh" ]
    then
        cat all.sh >> out.txt
        /bin/bash ifthenelse.sh "Linus Torvalds" >> out.txt
        /bin/bash ifthenelse.sh "Intel" >> out.txt
        /bin/bash ifthenelse.sh "David Vajda" >> out.txt
        /bin/bash ifthenelse.sh "Max Mustermann" >> out.txt
    else
        /bin/bash "./$s" >> out.txt
    fi
done
array.sh
Wir
nehmen
mal
einen
anderen
Text
Der
sich
wie
immer
fortsetzen
laesst
Wir
nehmen
mal
einen
anderen
Text
Der
sich
wie
immer
fortsetzen
laesst
cmd.sh
.
..
all.sh
array.sh
cmd.sh
hello.sh
ifthenelse.sh
out.txt
while.sh
hello.sh
\#!/bin/bash
Hello World
ifthenelse.sh
#!/bin/bash 

rm out.txt

l=$(ls)

for s in $l
do
    echo "$s" >> out.txt
    if [ "$s" == "all.sh" ]
    then
        cat all.sh >> out.txt
    elif [ "$s" == "ifthenelse.sh" ]
    then
        cat all.sh >> out.txt
        /bin/bash ifthenelse.sh "Linus Torvalds" >> out.txt
        /bin/bash ifthenelse.sh "Intel" >> out.txt
        /bin/bash ifthenelse.sh "David Vajda" >> out.txt
        /bin/bash ifthenelse.sh "Max Mustermann" >> out.txt
    else
        /bin/bash "./$s" >> out.txt
    fi
done
That's a Linux Developer
That's a CPU developer
That's me
Es gibt viele Leute
while.sh
Hallo zum 1.
Hallo zum 2.
Hallo zum 3.
Hallo zum 4.
Hallo zum 5.
Hallo zum 6.
Hallo zum 7.
Hallo zum 8.
Hallo zum 9.
Hallo zum 10.