Hacker News new | ask | show | jobs
by zerr 975 days ago
Did the popularity of AWK demise after Perl became ubiquitous?
2 comments

Prior to Perl most text processing was done with unix pipelines and awk/sed/C. So Perl allowed people to stop writing C and also stop using lots of separate programs to do one thing. Many of the awk constructs survive in Perl such as running code once per line, // for regular expressions which implicitly work on the current line, $1/$2/$3 etc. so it's not too difficult to use Perl instead of awk.
Awk was always a tool for use in shell scripts and one liners, and is still going strong.

Perl, not so much.

Perl for one-liners is extremely common. It was built with that in mind.