1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash # -*- mode: bash -*- PASS=0 FAIL=0 for file in *.bt do #echo "$file" ./abrt-backtrace $file 1> /dev/null if [ "$?" -eq "0" ] then echo -n "." PASS=$(($PASS+1)) else echo "-$file" FAIL=$(($FAIL+1)) fi done echo "" echo "Passed $PASS and failed $FAIL."