---
type: link
tags: [command, linux, terminal, awk]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-04-06T11:07:49.217417+00:00
---# Calculate the average of values in a column.

**URL:** [https://www.gnu.org/software/gawk/manual/gawk.html](https://www.gnu.org/software/gawk/manual/gawk.html)

awk | Calculate the average of values in a column. awk '{sum += $3} END {print sum/NR}' file.txt


---
**Keywords:** command, linux, terminal, awk
