4 ms·
Awk is really such an interesting tool that I don't see people using enough. I could see how awk would be perfect for this
by jedimastert 5y ago
Awk is really such an interesting tool that I don't see people using enough. I could see how awk would be perfect for this
- ape4 5y agoIts named after the last names of the creators: Alfred Aho, Peter Weinberger, and Brian Kernighan. We're lucky C isn't named K&R
- falsaberN1 5y agoI use awk a lot myself. It's gotten to the point where I enjoy using it, might be a disease of some sort. But it's still been highly productive for parsing text streams or do stuff like add proper visual feedback to plaintext tools, pretty progress bars for wget/curl download jobs, monitoring scripts and generally anything related to extracting bits of data or pretty-printing. I particularly enjoy using gawk (mostly for the more usable match() and sed-like in-file editing), but will do fine with a busybox awk or so as well. Something about the language just clicks with my way of doing things. It's like the perfect middle-ground between a shell script and starting a full python (or equivalent) script.
- nmz 5y agoThe more awk I write, the more it starts to look like apl/j. And that's a good thing.
- justaj 5y ago> that I don't see people using enough. I'm betting that's because of its steep learning curve.