[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the opposite of 'printf'?
From: |
Eric Blake |
Subject: |
Re: What is the opposite of 'printf'? |
Date: |
Mon, 11 Dec 2006 20:14:24 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Matthew Woehlke on 12/11/2006 5:46 PM:
>
> The objective is to be able to reproduce a binary file from an 'editor
> friendly' shell script. I know base64 could do this, except that base64
> is not portable (even to pre-6.x GNU coreutils), whereas printf is IIRC
> required by POSIX.
Does your final filter have to be printf, or can it be another program?
For example, have you considered uuencode/uudecode, which _are_ specified
by POSIX?
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFfh6Q84KuGfSFAYARAqtQAJ9S03oaIZ/VyjWQ95JR8IjiEhsUVgCfWqlE
did4U/Vt7EIEjy6voZRYhX4=
=u+yH
-----END PGP SIGNATURE-----