Created
November 5, 2025 01:35
-
-
Save WilliamSampaio/9cce9eeb80f568b92de38b87ed2c6bbf to your computer and use it in GitHub Desktop.
Filtra o tempo de duração dos logs gerados pelo Apache Hop e calcula a média em segundos.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| for file in ~/integracao_*.log; do tail -n 1 $file | awk '{print $9}'; done | awk '{ sum += $1 } END { if (NR > 0) print sum / NR }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment