/media/sda-magnetic/david/Dok-15-2023-11-27/informatik/bash/bash-2023-11-05/all.sh


#!/bin/bash

if [ -f out.txt ]
then
    rm out.txt
fi

l=$(ls *.sh)

for s in $l
do
    if [[ "$s" != "exec.sh" && "$s" != "all.sh" ]]
    then
        echo "######" >> out.txt
        echo "$s" >> out.txt
        echo "######" >> out.txt
        /bin/bash "$s" >> out.txt
    fi
done

s="cond.sh"

echo "######" >> out.txt
echo "$s" >> out.txt
echo "######" >> out.txt
/bin/bash "$s" "David" "Vajda" >> out.txt

echo "######" >> out.txt
echo "$s" >> out.txt
echo "######" >> out.txt
/bin/bash "$s" "David" >> out.txt

echo "######" >> out.txt
echo "$s" >> out.txt
echo "######" >> out.txt
/bin/bash "$s" "Alfonso" >> out.txt