#!/bin/sh # Get application name from directory application=`basename $PWD` # Find and source additional functions tutorialPath=$PWD while [ ! -f $tutorialPath/CleanFunctions ] do tutorialPath="$tutorialPath/.." done . $tutorialPath/CleanFunctions removeCase decompressionTankFine for case in * do if [ -d $case ] then (cd $case && $tutorialsDir/cleanAll) fi done