Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.unix Subject: Re: Neophyte awk question(s) Message-ID: <4438@utzoo.UUCP> Date: Wed, 10-Oct-84 14:34:01 EDT Article-I.D.: utzoo.4438 Posted: Wed Oct 10 14:34:01 1984 Date-Received: Wed, 10-Oct-84 14:34:01 EDT References: <487@loral.UUCP>, <4363@utzoo.UUCP>, <146@desint.UUCP> Organization: U of Toronto Zoology Lines: 13 > ... Note the correct syntax in the example above; "printf" in > awk *does* require parentheses--it's "print" that doesn't, just to keep life > confusing. If your awk needs parentheses around the parameters to printf, your awk is broken. The V7 awk doesn't need the parentheses, the examples in the V7 awk manual don't have them, and we've never used them anywhere in our (fairly extensive) body of awk code. As I admitted in my earlier followup message, %c in awk does work; I goofed. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry