Neophyte awk question(s)

Henry Spencer henry at utzoo.UUCP
Thu Oct 11 04:34:01 AEST 1984


> ...  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



More information about the Comp.unix mailing list