#!/bin/bash
l=$(ls)
for s in $l
do
if [ "$s" != "all.sh" ]
then
if [ "$s" != "out.txt" ]
then
if [ "$s" == "ifthenelse.sh" ]
then
echo "David Vajda" | /bin/bash "$s" >> out.txt
elif [ "$s" == "io.sh" ]
then
echo "David Vajda" | /bin/bash "$s" >> out.txt
else
/bin/bash "$s" >> out.txt
fi
fi
fi
done
for s in $l
do
if [ "$s" != "all.sh" ]
then
if [ "$s" != "out.txt" ]
then
if [ "$s" == "ifthenelse.sh" ]
then
echo "Tux User" | /bin/bash "$s" >> out.txt
elif [ "$s" == "io.sh" ]
then
echo "Tux User" | /bin/bash "$s" >> out.txt
else
/bin/bash "$s" >> out.txt
fi
fi
fi
done
for s in $l
do
if [ "$s" != "all.sh" ]
then
if [ "$s" != "out.txt" ]
then
if [ "$s" == "ifthenelse.sh" ]
then
echo "Max Mustermann" | /bin/bash "$s" >> out.txt
elif [ "$s" == "io.sh" ]
then
echo "Max Mustermann" | /bin/bash "$s" >> out.txt
else
/bin/bash "$s" >> out.txt
fi
fi
fi
done