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