---
type: link
tags: [public, command, linux, terminal, awk]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:56.390Z
---# 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:** public, command, linux, terminal, awk
