Re: Aufgaben und Übungen,

#!/bin/bash

l=\$(ls *.sh)
for s in \$l
do
    if [[ "\$s" != "all.sh" \&\& "\$s" != "cond.sh" ]]
    then
        echo "#############"
        echo "### \$s"
        echo "#############"
        r=\$(/bin/bash \$s)
        for t in \$r
        do
            echo "### \$t"
        done
    fi
done

s="cond.sh"
echo "#############"
echo "### \$s"
echo "#############"
r=\$(/bin/bash \$s "David" "Vajda")
for t in \$r
do
    echo "### \$t"
done

s="cond.sh"
echo "#############"
echo "### \$s"
echo "#############"
r=\$(/bin/bash \$s "David")
for t in \$r
do
    echo "### \$t"
done

s="cond.sh"
echo "#############"
echo "### \$s"
echo "#############"
r=\$(/bin/bash \$s "Max Mustermann")
for t in \$r
do
    echo "### \$t"
done