Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!reo From: reo@cbnews.cb.att.com (robert.e.o'brien) Newsgroups: comp.unix.wizards Subject: awk problem Keywords: awk Message-ID: <1991Apr23.104858.26935@cbnews.cb.att.com> Date: 23 Apr 91 10:48:58 GMT Distribution: usa Organization: AT&T Bell Laboratories Lines: 18 This is embarrassingly simple, but I can't figure it out. The awk book by the Aho, Kernigan, and Weinberger have info about piping in input using the getline function. When I try (see p. 62 of book which has "date" | getline d): { "date" | getline d print d } I get: awk: syntax error near line 1 awk: illegal statement near line 1 I've tried a number of variations on this. What am I doing wrong? Thanks in advance. Bob O'Brien