1 2 3 4 5 6 7 8 9 10 11 12 13
# /bin/bash if [ "$1" == "" ]; then DIRS=`ls -d TC*` else DIRS=$1 fi echo '"Test Case","Description"' for DIR in $DIRS; do grep -h "^# $DIR" $DIR/[0-9]* | cut -d ' ' -f 2- | sed -e 's/ /,"/' -e 's/$/"/' done cd .. exit 0