5 ms·
Did the popularity of AWK demise after Perl became ubiquitous?
by zerr 3y ago
Did the popularity of AWK demise after Perl became ubiquitous?
- coldtea 3y agoAwk was always a tool for use in shell scripts and one liners, and is still going strong. Perl, not so much.
- rjh29 3y agoPerl for one-liners is extremely common. It was built with that in mind.
- rjh29 3y agoPrior 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.