Aggregate numeric values from a column.
Section: sed awk and Structured Text Workflows
Sum values with awk
bash
bash
awk '{sum += $3} END {print sum}' metrics.txtExplanation
Useful for fast command-line summaries.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed awk and Structured Text Workflows