3 # Run in the armel or armhf directory
5 if [ ! -d PASS ] && [ ! -d FAIL ]; then
6 echo "Can't find PASS/FAIL dirs; abort";
10 for stem in $( (ls -1 PASS ; ls -1 FAIL) | grep -v .html$ | \
11 awk '{fields=split($1,a,"_"); count[a[1]]++};
12 END { for (keys in count) { if (count[keys] != 1) { print keys }}}'); do
13 NUM=$(ls -l */"$stem"_* | wc -l)
15 for file in $(ls -1 */"$stem"_* | head -$NUM); do
18 file=$(ls -1 */"$stem"_* | tail -1)
19 printf "### Keeping $file\n\n"