#!/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