From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 17 Sep 2013 19:07:55 +0000 Message-ID: <20130917190755.Horde.hC1rtvUyWEAln7yGFt2EGw7@ssl.eumx.net> From: Kurt H Maier To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <1482429.KLDYROpnPh@coil> <20130917140311.Horde.h37nmc23IQ06O84zHmBqzw1@ssl.eumx.net> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.1.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Subject: Re: [9fans] how to output NUL byte from awk? Topicbox-Message-UUID: 806a17cc-ead8-11e9-9d60-3106f5b1d025 Quoting erik quanstrom : > On Tue Sep 17 10:04:20 EDT 2013, khm@sciops.net wrote: > > no, awk's printf does not do that: > minooka; awk 'BEGIN{printf "%c", utf(0)}' | wc not if you ask it to convert '0' to unicode and then covert the unicode value to a char, no. I'm almost positive if you tell it to cast 0 (the number) to char and print it, it will give you a null byte. khm