Newsgroups: comp.unix.questions Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!boulder!tramp.Colorado.EDU!lewis From: lewis@tramp.Colorado.EDU (LEWIS WILLIAM M JR) Subject: Re: Text Processing Question Message-ID: <1991Mar18.163109.14482@colorado.edu> Sender: news@colorado.edu (The Daily Planet) Nntp-Posting-Host: tramp.colorado.edu Organization: University of Colorado, Boulder References: <31134@usc> <1991Mar18.013647.7570@midway.uchicago.edu> <1991Mar18.051909.19578@convex.com> Distribution: usa Date: Mon, 18 Mar 1991 16:31:09 GMT See page 121 of Kernighan & Pike "The UNIX Programming Environment" for an awk version of "double". In my edition of the book there is an error in the program -- near the end it reads: printf "double %s, ... if (NF > 0) # <= DELETE ONLY THIS LINE lastword = NF }' $*