1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# /bin/bash . ~/.bashrc function failed { echo "FAILED TEST! " $* exit 1 } if [ "$1" != "" ] ; then for FILE in TestCases/$1/[0-9]*; do echo "*** "$FILE" ***" cat $FILE echo done else echo "Usage: cmds <TestCase>" fi exit 0