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: <4376@utzoo.UUCP> Date: Thu, 27-Sep-84 13:32:48 EDT Article-I.D.: utzoo.4376 Posted: Thu Sep 27 13:32:48 1984 Date-Received: Thu, 27-Sep-84 13:32:48 EDT References: <487@loral.UUCP>, <39300016@uiucdcs.UUCP> Organization: U of Toronto Zoology Lines: 15 > use something like: printf "%c", 1. However, this is often awkward. Hm, one learns something every day. How embarrassing, since my posting to the net on the subject said it couldn't be done... On inspection of the code, awk's %c takes the argument as a number (if possible, otherwise you get nothing printed), converts it to an int, and feeds that to the C %c. By accident, the experiments I did with %c all ran afoul of the value not being a number. My general comment "awk is not C" stands, however. Try using %u and you'll see what I mean... -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry