tag:blogger.com,1999:blog-462006525194985726.post3973002062643825548..comments2023-09-22T14:13:08.968-04:00Comments on Sandro Tosi: Print a NUL-terminated string with awkSandro Tosihttp://www.blogger.com/profile/17077191422205823991noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-462006525194985726.post-20638564583715163762011-09-19T09:36:21.296-04:002011-09-19T09:36:21.296-04:00You should use 0 instead of "" for the n...You should use <b>0</b> instead of <b>""</b> for the null character, the latter does not work in original-awk.<br /><br />I would go for the awk code <b>{ printf "%s%c", $0, 0 }</b>.<br /><br />If you are only interested in gawk you can just set <b>ORS="\0"</b>.Jeroen Schothttps://www.blogger.com/profile/00097068728616236000noreply@blogger.com