3 ms·
Really? The reason I should learn awk is "why not?" That has to be one of the worst reasons ever. Not that I am bashing awk or anything. I'm sure there are man
by jgeralnik 15y ago
Really? The reason I should learn awk is "why not?"
That has to be one of the worst reasons ever.
Not that I am bashing awk or anything. I'm sure there are many reasons to learn it. But why not is definitely not one of them.
- burke 15y ago> bashing awk I know this was an unintentional pun, but I still thought it was funny.
- pkrumins 15y agoThat was my reason, cause I love to learn everything. Why not learn everything? :) I'll update the page with a more compelling reason. Thanks for bringing this up.
- lanstein 15y agoI had the same question the other day, and it turned into a spontaneous all-company "why you should use awk" lesson. If this kind of thing sounds cool to you, drop me a resume at david at loggly.com. We're at 1st and Mission in SF. Short answer, it's a baby programming language that's more powerful than sed, quicker to write than python, and less confusing than cut.
- andrus 15y agoI've found that awk is one of those tools whose potential use becomes clear only after putting in some initial effort to learn it. Along with sed, sort, and others, awk has solved problems for me that would have otherwise been extremely tedious. So the reason "why not be a master the shell" seems more about saving yourself time/being more efficient/knowing the tools at your disposal.
- laughinghan 15y agoThere are a lot of hacker types, myself and many friends included, for which "why not" is the reason we learn most of the things we do. It's partly linked to intellectual curiosity, and on the other hand partly linked to how we procrastinate/stave off boredom: learning random things.