From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnold@skeeve.com Message-Id: <201309171750.r8HHoOkI004385@freefriends.org> Date: Tue, 17 Sep 2013 11:50:23 -0600 To: 9fans@9fans.net References: <1482429.KLDYROpnPh@coil> In-Reply-To: <1482429.KLDYROpnPh@coil> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [9fans] how to output NUL byte from awk? Topicbox-Message-UUID: 80535546-ead8-11e9-9d60-3106f5b1d025 dexen deVries wrote: > awk(1) says, ``[s]tring constants are quoted " ", with the usual C escapes > recognized within.'', but \0 seems to terminate internal string > reprezentation... > > so how do i output a real NUL byte? Tooting my own horn (sorry) gawk 'BEGIN { printf("\0") }' "No arbitrary limits" in action. :-) Arnold