---
type: link
tags: [command, linux, terminal, awk]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-04-06T10:58:28.720864+00:00
---# Print the last field of each line.

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

awk | Print the last field of each line. awk '{print $NF}' file.txt


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