From: arnold@skeeve.com
To: 9fans@9fans.net
Subject: Re: [9fans] how to output NUL byte from awk?
Date: Tue, 17 Sep 2013 11:50:23 -0600 [thread overview]
Message-ID: <201309171750.r8HHoOkI004385@freefriends.org> (raw)
In-Reply-To: <1482429.KLDYROpnPh@coil>
dexen deVries <dexen.devries@gmail.com> 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
next prev parent reply other threads:[~2013-09-17 17:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 13:47 dexen deVries
2013-09-17 14:03 ` Kurt H Maier
2013-09-17 14:36 ` dexen deVries
2013-09-17 16:50 ` erik quanstrom
2013-09-17 17:12 ` dexen deVries
2013-09-17 18:55 ` dexen deVries
2013-09-17 19:07 ` Kurt H Maier
2013-09-17 19:21 ` cinap_lenrek
2013-09-17 17:50 ` arnold [this message]
2013-09-18 7:24 ` Florian Limberger
2013-09-18 7:36 ` Bruce Ellis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201309171750.r8HHoOkI004385@freefriends.org \
--to=arnold@skeeve.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).