5 ms·
Awk sed bash and perl are extremely underrated and nearly always beats python for elegance and succinctness of the repeating problems in the daily chores of sys
by noloblo 4y ago
Awk sed bash and perl are extremely underrated and nearly always beats python for elegance and succinctness of the repeating problems in the daily chores of sys admin
- anthk 4y agoPerl itself replaces awk, sed and bash for scripts. Think about it :D.
- effie 4y agoPerl can do everything, but it does not replace those tools. They are better adapted to their specific domains.
- anthk 4y agoThen you don't know neither awk or sed. Most of awk can be redone in Perl with ease, and for regex matching and replacing with sed, PCRE and Perl were practically made for that. I mean, sometimes for small edits sed it's better, and awk for some tabular based files by using xml2tsv or lots of TSV related tools. But for medium sized projects, Perl it's the obvious tool against something that requieres something similar to awk/sed but more complex data parsing.
- effie 4y ago> for small edits sed it's better, and awk for some tabular based files by using xml2tsv or lots of TSV related tools. That, and shell, sed and awk are standard tools which are easy to learn, every unix user should learn basics of (even a java developer), and this won't change anytime soon. However, this can't be said of Perl - it is a powerful tool, but it became culturally obsolete and deprecated, and most unix users in the present and the future won't be bothered to learn it, when learning more modern languages like Python is a better investment.
- pcw888 4y agoI remember the trend away from Perl, but it's a great language. It just became unfashionable.