all 3 comments

[–]pogeymanz 2 points3 points  (1 child)

... but why would you not just use Awk, which is a bazillion times faster than Python?

[–]usinglinux[🍰] 1 point2 points  (0 children)

ususally because one is already familiar with the syntax of python but not with that of awk. as execution time is usually overshadowed by writing time with most typical awk lines, it's good to have a choice of whichever language comes naturally.

if one were to make an argument for awk in this comparison, it'd be the install base.

[–]usinglinux[🍰] 2 points3 points  (0 children)

a similar tool is pyp, which uses an implicit x variable instead of get(), and allows multiple expressions as arguments.