kj said:
Do people proficient in Perl have any use for awk/gawk anymore?
Are there things that you still prefer to do using awk/gawk over
perl?
I recently thought about this, and ended up having the tools set
up in three categories. The first category containing the traditional
shell tools (cat, sed, grep, sort, ...). The second category was
"what do I use when I'm doing something where this combination is
no longer convenient to solve the problem at hand"; that category
was just "awk". Then, a third category was "what to use when awk
is not enough", and this was "perl" (including needed modules on
a case-by-case basis).
This third category includes things like cases where networking or
database connectivity is needed, and also things where I do something
requiring data structures more complex than provided by the awk hashes
(mostly hierarchical data, so hashes of hashes and so).
Depending on the host OS, I've lately begun skipping the awk stage
and just doing with perl whatever doesn't feel convenient to solve
with traditional tools. This mostly is when I'm working on a Linux
system, where I can assume existence of perl.
On the other hand, on systems running proprietary Unixes (Solaris,
HP-UX), I don't take existence of perl for granted (even though
perl might be installed on that single machine where I'm writing
the new tool), so in these environments I tend to avoid using perl
much longer. But I guess using awk to write output to be executed
in dtksh eval statement (to get dynamic fill-in forms) was overdoing
it...
