4 ms·
awk is so beautiful. A good awk one-liner can beat fancy pandas all day long in some cases.
by sidlls 8y ago
awk is so beautiful. A good awk one-liner can beat fancy pandas all day long in some cases.
- flukus 8y agoI hate how awk gets so much praise for one liners when it's so good at building things like state machines too: https://two-wrongs.com/awk-state-machine-parser-pattern.html https://two-wrongs.com/awk-state-machine-parser-pattern.html I've got some similar ones for work that take data csv like data and output sql. A little bit of vim-foo on the csv (yy10000p) and I've got all the test data I need.
- cosmie 8y agoIf anything, awk should get some praise for it's flexibility to go from one liners to Doom-style 3d games[1]! [1] https://github.com/TheMozg/awk-raycaster https://github.com/TheMozg/awk-raycaster
- cwilkes 8y agoAn example here would be nice.