4 ms·
For one-liners, awk. For anything more complicated, I'm faster writing a 30-line Python script than a 5-line Perl script - and everyone involved, myself include
by geofft 7y ago
For one-liners, awk. For anything more complicated, I'm faster writing a 30-line Python script than a 5-line Perl script - and everyone involved, myself included, is happier six months later when we need to edit it.
- hwj 7y agoFor one-liners, I considered switching from Perl to AWK, but gave up because AWK behaves differently on BSD and Linux. Btw: The book "Perl One-Liners" from No Starch is not bad for people who want to learn a bit of Perl to become "dangerous".