From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,386228a37afe967f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-21 10:52:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!nntp.abs.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Mon, 21 Jul 2003 13:52:23 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030611 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Computer Language Shootout References: <1058802389.227844@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1058809943.932561@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1058809944 2095 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:40567 Date: 2003-07-21T13:52:23-04:00 List-Id: tmoran@acm.org wrote: > I suppose some people have probably tried to use a pliers to tighten > the head bolts on their car's engine. The relevant phrase is "Use > the right tool for the job". Huh? It was a plain old text file, it just happened to have long lines. What makes the standard text processing utilities be the wrong tool? If you really care, it was a .newsrc file, and for some neewsgroups the reading pattern had been such that the lines were a very long sequence of comma-separated pairs of dash-separated numbers. How short does a line have to be for sed or awk to be the right tool? Fortunately for me, I was using GNU versions, and they remained the right tool.