3 ms·
AWK can be learned much faster than Perl though.
by Scarbutt 7y ago
AWK can be learned much faster than Perl though.
- webreac 7y agoYes, but as soon as your awk script becomes complex, you need to switch to a more complete language like perl (or python or ruby). Switch slightly earlier and avoid learning all the subtelities of awk (the same applies to sed). You need to learn well one scripting language and to know most common use cases of sed, awk.
- Annatar 7y agoNo you don't. There is no reason to switch. I've written many full-blown programs in AWK and I see no reason to switch them to another language -- they're fast, portable and readable, with tiny memory requirements. It all comes down to mastery: someone who's mastered AWK will have no issues with a large AWK program and therefore will feel no urge to translate that program to another language. Large AWK programs are easy to maintain because the syntax is so small that the code is always intrinsically understandable.
- mcguire 7y agoYou don't so much learn Perl as develop the ability to emulate Larry Wall.