#!/bin/bash
for i in tests/*.out
do
  i="${i%.out}.log"
  if [ -r "$i" ]
  then
    echo "*** $i"
    cat "$i"
    echo "*** $i dirs"
    find "${i%.log}.dir"? -print0 | sort -z | xargs -0 stat -c "%n %s %b %f %u %g %D %i %h %t %T %x %y %z %W %o"
    echo "*** END $i"
  fi
done
