Why you use awk?
[0]: http://rc3.org/2014/08/28/surprisingly-perl-outperforms-sed-...
Why you use awk?
[0]: http://rc3.org/2014/08/28/surprisingly-perl-outperforms-sed-...
Remembering which Perl command-line arguments simulate awk’s line-by-line processing is harder than just remembering awk.
I think if you know Perl really well and can remember the command line arguments - particularly -E, -n, -I and -p - then it’s a good swap in substitute for grep, sed, awk, cut, bash, etc when whatever 5 min task you’re working on gets a tiny bit more complex.
Similarly a decent version perl 5 seems to be installed everywhere by default.
I’m curious to know if anyone would say the same about python or any other programs? I’m not particularly strong in short python scripting.
I do, however, use it for JSON pretty printing in a pipeline: python -mjson.tool IIRC.