From owner-freebsd-questions@FreeBSD.ORG Mon Aug 23 21:10:20 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C8991065672 for ; Mon, 23 Aug 2010 21:10:20 +0000 (UTC) (envelope-from prvs=844764b52=pschmehl_lists@tx.rr.com) Received: from ip-002.utdallas.edu (ip-002.utdallas.edu [129.110.20.108]) by mx1.freebsd.org (Postfix) with ESMTP id F1B268FC13 for ; Mon, 23 Aug 2010 21:10:19 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At4FAIx8ckyBbgogUmdsb2JhbACgRQEkQb1lhTcEhDU X-IronPort-AV: E=Sophos;i="4.56,259,1280725200"; d="scan'208";a="36405110" Received: from zxtm01.utdallas.edu (HELO utd65257.utdallas.edu) ([129.110.10.32]) by ip-002.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Aug 2010 15:50:51 -0500 Date: Mon, 23 Aug 2010 15:50:54 -0500 From: Paul Schmehl To: "Randal L. Schwartz" , Paul Schmehl Message-ID: <4D47F011BCB8F123288A2CEE@utd65257.utdallas.edu> In-Reply-To: <868w40izhk.fsf@red.stonehenge.com> References: <23BA961B74BA2B5CA8B523F9@utd65257.utdallas.edu> <868w40izhk.fsf@red.stonehenge.com> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: FreeBSD Questions Subject: Re: Any awk gurus on the list? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 21:10:20 -0000 --On Friday, August 20, 2010 17:24:55 -0700 "Randal L. Schwartz" wrote: >>>>>> "Paul" == Paul Schmehl 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