Skip to content

Instantly share code, notes, and snippets.

@WilliamSampaio
Created November 5, 2025 01:35
Show Gist options
  • Select an option

  • Save WilliamSampaio/9cce9eeb80f568b92de38b87ed2c6bbf to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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