Skip to content

Blog of iam8up

Month: January 2025

Average numbers echo’ed in bash

I’m tired of figuring this out again and again. This will average your output.

cat *latency.csv |cut -f5 -d,| awk '{sum+=$1; count++} END {if (count > 0) print "Average:", sum/count}'

Author iam8upPosted on January 14, 2025Categories UncategorizedLeave a comment on Average numbers echo’ed in bash

Archives

  • February 2025
  • January 2025
  • December 2024
  • August 2022
  • July 2021
  • September 2018
  • April 2018
  • February 2018
  • July 2017
  • November 2015
  • October 2015
  • June 2015
  • May 2015
  • November 2014
Blog of iam8up Proudly powered by WordPress