Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!uwmacc!jwp From: jwp@uwmacc.UUCP (Jeffrey W Percival) Newsgroups: comp.unix.questions Subject: 2.8BSD awk question: Oooh, I get it! Message-ID: <587@uwmacc.UUCP> Date: Wed, 26-Nov-86 15:41:58 EST Article-I.D.: uwmacc.587 Posted: Wed Nov 26 15:41:58 1986 Date-Received: Wed, 26-Nov-86 20:50:17 EST Organization: UWisconsin-Madison Academic Comp Center Lines: 17 Keywords: awk strings I get it! I answered my own question. In awk, only fields are referred to with a leading $... $0 is the whole line, $1 is field 1, and so on. My variable was called "header", so the correct statement is print header not print $header I guess $header was being evaluated as $0, so the observed output makes sense. I guess I get the Emily Litella award for today... Never mind! -- Jeff Percival ...!uwvax!uwmacc!sal70!jwp or ...!uwmacc!jwp