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