#!/bin/bash l=$(ls) for x in $l do if [ "$x" != "all.sh" ] then if [ "$x" != "output.txt" ] then /bin/bash "$x" >> output.txt fi fi done