© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Jagadish Thawri
#DEVOPS
What is $ in awk?
Chetan Mohanrao Mohod
Navigating the DevOps Journey: Automating, Optimizing, Innovating.
The $ symbol refers to fields/columns in each input file line. So $1 represents the first column, similarly $2 represents the second column.
So the awk command will print the file's 1,2 and 3rd columns.