1 2 3 4 5 6 7 8
#!/bin/bash set -euo pipefail logs="$1" find "$logs" -type f \ -exec awk '$7 == "failed;" && $6 > 0 {print FILENAME, $0 }' '{}' +