Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hc!beta!dph From: dph@beta.UUCP (David P Huelsbeck) Newsgroups: comp.unix.questions Subject: Re: Using pipes within awk programs Message-ID: <14377@beta.UUCP> Date: 16 Jan 88 00:36:33 GMT References: <515@root44.co.uk> <537@cresswell.quintus.UUCP> Reply-To: dph@LANL.GOV.ARPA (David P Huelsbeck) Organization: Los Alamos Natl. Labs, Los Alamos, NM Lines: 43 Keywords: awk, pipe Summary: awk book is on the *new* awk In article <537@cresswell.quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes: >In article <515@root44.co.uk>, gwc@root.co.uk (Geoff Clare) ask >about using pipes within awk programs. > >This feature is described in the book > The AWK Programming Language > Aho, Kernighan, & Weinberger > Addison-Wesley > ISBN 0-201-07981-X > US$ 22 > [...] > >Page 59 (Closing Files and Pipes): > close("...") >closes a pipe or a file. > I believe that this feature is not common to most awks. It will not work for most poor folks with the plain old vanilla awk, >Anyone who is interested in mastering AWK should at least read this >book. It describes the latest version, so there are some features >(like user-defined functions, alas) which may not be available in ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >the version you're using. The latest version is available for MS-DOS... ^^^^^^^^^^^^^^^^^^^^^^^^ What are they charging for the new version? Does it come with source or does that cost you mega-dollars? Poor folks can get GNU awk (gawk) from prep.ai.mit.edu. I've never tried it, but from the source I'd say it's not new-awk-compatable. David Huelsbeck dph@lanl.gov.arpa {ihnp4|cmcl2}!lanl!dph