Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #10061

Can I output a binary file from an AWK program?

From Alan Mackenzie <acm@muc.de>
Newsgroups comp.lang.awk
Subject Can I output a binary file from an AWK program?
Date 2026-03-28 19:14 +0000
Organization muc.de e.V.
Message-ID <10q99ai$ph7$1@news.muc.de> (permalink)

Show all headers | View raw


I think the Subject: line says it all.  I have a text source file to
convert into a binary output file.  For example, I want to be able to
output a 32-bit integer as a four byte little-endian binary integer.

Can AWK do this?  (It is supposed to by Turing complete, isn't it?)

Or should I dust off my three-quarters forgotton Python and write the
program in Python (Or P***) instead?

Thanks for the help!

-- 
Alan Mackenzie (Nuremberg, Germany).

Back to comp.lang.awk | Previous | NextNext in thread | Find similar


Thread

Can I output a binary file from an AWK program? Alan Mackenzie <acm@muc.de> - 2026-03-28 19:14 +0000
  Re: Can I output a binary file from an AWK program? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-03-28 21:17 +0100
    Re: Can I output a binary file from an AWK program? Alan Mackenzie <acm@muc.de> - 2026-03-29 11:30 +0000
      Re: Can I output a binary file from an AWK program? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-03-29 13:35 +0200
  Re: Can I output a binary file from an AWK program? Kaz Kylheku <046-301-5902@kylheku.com> - 2026-03-29 23:45 +0000
    Re: Can I output a binary file from an AWK program? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-03-29 17:07 -0700
      Re: Can I output a binary file from an AWK program? Kaz Kylheku <046-301-5902@kylheku.com> - 2026-04-17 00:25 +0000
  Re: Can I output a binary file from an AWK program? gazelle@shell.xmission.com (Kenny McCormack) - 2026-03-30 09:37 +0000
    Re: Can I output a binary file from an AWK program? gazelle@shell.xmission.com (Kenny McCormack) - 2026-04-02 12:06 +0000

csiph-web