Kaushik Gopal's Website personal blog

What does $0=$2 in awk do?

The trick to understanding awk in all its terse glory is to understand its defaults. Most solutions you see in the wild are a clever symphony of awk defaults stacked on top of each other. In this post, I break down one of the most popular one-liners which should hopefully make future awk-ing pretty straight forward.
Points
131
HN comments
85
Submissions
1
Cited by
0 commenters

Software EngineeringTools & Productivity2022

On Hacker News

SubmittedTitle on HNPointsComments
Sep 25, 2022What does $0=$2 in awk do? by sorcercode13185

More from Kaushik Gopal's Website

All 3 posts →

Related posts from the same era