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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Sep 25, 2022 | What does $0=$2 in awk do? by sorcercode | 131 | 85 |