4 ms·
I used to be scared of Awk, and then I read through the appendix / chapters of "More Programming Pearls" (https://www.amazon.com/More-Programming-Pearls-Confess
by knlb 11mo ago
I used to be scared of Awk, and then I read through the appendix / chapters of "More Programming Pearls" (https://www.amazon.com/More-Programming-Pearls-Confessions-Coder/dp/0201118890 https://www.amazon.com/More-Programming-Pearls-Confessions-C...) and it became a much easier to reason about language.
The structure can be a bit confusing if you've only seen one liners because it has a lot of defaults that kick in when not specified.
The pleasant surprise from learning to use awk was that bpftrace suddenly became much more understandable and easier to write as well, because it's partially inspired by awk.
- svat 11mo agoI learned the basics of AWK in a few minutes from here: https://learnxinyminutes.com/awk/ https://learnxinyminutes.com/awk/ — and I agree with you, it was worth it!
- svat 11mo agoEven shorter is this comic from Julia Evans: https://wizardzines.com/comics/awk/ https://wizardzines.com/comics/awk/