Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2010 15:50:54 -0500
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        "Randal L. Schwartz" <merlyn@stonehenge.com>, Paul Schmehl <pschmehl_lists@tx.rr.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Any awk gurus on the list?
Message-ID:  <4D47F011BCB8F123288A2CEE@utd65257.utdallas.edu>
In-Reply-To: <868w40izhk.fsf@red.stonehenge.com>
References:  <23BA961B74BA2B5CA8B523F9@utd65257.utdallas.edu> <868w40izhk.fsf@red.stonehenge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--On Friday, August 20, 2010 17:24:55 -0700 "Randal L. Schwartz" 
<merlyn@stonehenge.com> wrote:

>>>>>> "Paul" == Paul Schmehl <pschmehl_lists@tx.rr.com> writes:
>
> Paul> Yes, I know I could do this easily in Perl.  I'm doing this to try
> Paul> and improve my understanding of awk.
>
> To what end?
>
> Every modern system that can run awk can also run Perl.  Why not
> concentrate on Perl?

Three reasons.  Perl is too easy (for this particular problem.)  :-)
Perl isn't part of the base system for FreeBSD.

# ls -lsa /usr/bin/perl
0 lrwxr-xr-x  1 root  wheel  25 Jul 29 22:53 /usr/bin/perl -> 
/usr/local/bin/perl5.12.1

# ls -lsa /usr/bin/awk
134 -r-xr-xr-x  2 root  wheel  135472 Jul  4  2008 /usr/bin/awk

It never hurts to learn new things, especially things that might get you out of 
a jam when a system isn't working as expected and you have access to a limited 
number of tools to solve the problem.

-- 
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D47F011BCB8F123288A2CEE>