Skip to content

Instantly share code, notes, and snippets.

View ChicagoDev's full-sized avatar
🇺🇸

Blake Gideon ChicagoDev

🇺🇸
View GitHub Profile
@jamerfort
jamerfort / avg.awk
Created November 28, 2012 21:22
Awk scripts for total/average/max/min. All numbers come in on STDIN
#!/usr/bin/awk -f
BEGIN { TOTAL=0 }
{ TOTAL = TOTAL + $1 }
END { print TOTAL/NR }