4 ms·
I find that opinionated tools like awk are esoteric and very niche, but for things they do, they do very well. Writing awk scripts for simple text transformatio
by lumb63 4y ago
I find that opinionated tools like awk are esoteric and very niche, but for things they do, they do very well. Writing awk scripts for simple text transformations brings me immense pleasure.
- sargstuff 4y agoyes, maybe esoteric today, but not when only tool available (~late 80's) across multiple platforms mac, unix flavors, vax, spery rand, burrows, wang, sun, alpha and x86.
- sargstuff 4y agotend to forget, awk isn't the typical choice for programs in 20k-100k lines range.
- froh 4y agoyup. I wonder "what if" awk had added records (dotted r.attrib notation) and namespaces. I've created sizeable awk scripts back in the day, and I missed the former dearly and the latter somewhat.
- sargstuff 4y agoNah, (humor observation), using system() is the only one true way to do namespaces. The way gawk handles functional parameters can simulate records (dotted r.attrib notation) Gawk @ additon [1] permits namespaces (include,load) and other fun syntax/sematic jit enforced separation. [1] https://www.gnu.org/software/gawk/manual/html_node/Index.html https://www.gnu.org/software/gawk/manual/html_node/Index.htm...