4 ms·
Is there a real advantage to using awk over python for most tasks? Or is just a little faster/more convenient if you already know it?
by sgillen 8y ago
Is there a real advantage to using awk over python for most tasks? Or is just a little faster/more convenient if you already know it?
- asicsp 8y agoif you need a cli tool, then awk clearly wins as python isn't suited in a cli pipeline speed is a factor too, if you consider combining with other cli features, for example https://adamdrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html https://adamdrake.com/command-line-tools-can-be-235x-faster-...
- flukus 8y agoIt's usable inline and is great for state machine stuff (https://two-wrongs.com/awk-state-machine-parser-pattern.html https://two-wrongs.com/awk-state-machine-parser-pattern.html), both useful for text processing.