[awk]:calculate avg