3 ms·
In my UNIX learning history I skipped straight from sed to perl and didn't use awk. By the time I had switched to python, awk sounded awfully "old" to me. I w
by dekhn 4y ago
In my UNIX learning history I skipped straight from sed to perl and didn't use awk. By the time I had switched to python, awk sounded awfully "old" to me.
I went back recently and read more on it and now I understand: it was an excellent interpreted programming language that gave semiskilled programmers some things C didn't, like associative arrays, all nicely packaged within the UNIX frame of mind. In an alternative universe, perhaps awk, instead of perl and then python, would become the scripting language of choice.
- bcrl 4y agoPython is only slightly younger than awk at this point.
- deleted 4y ago[deleted]
- dev_tty01 4y agoFor many of us, it is the scripting language of choice...
- anthk 4y agoMost people naturally stepped from awk+sed+sh to Perl. At least for scripts longer than 30-40 lines where sh looks clunky with too much var substitution and clunky sed regexen. Perl is something between sh and C on syntax, but easier and with builting match/replace capabilities.