[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the opposite of 'printf'?
From: |
Paul Eggert |
Subject: |
Re: What is the opposite of 'printf'? |
Date: |
Mon, 18 Dec 2006 14:04:13 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Matthew Woehlke <address@hidden> writes:
> Given the remainder of this thread, can one of the maintainers offer
> an opinion on whether or not 'unprintf' (also useful for programmers;
> again, see rest of the thread) would be a useful addition to
> coreutils, or perhaps some other existing GNU project?
I dunno, it sounds fairly specialized. Why not just use a portable
POSIX script instead? It should be small. Something like this:
od -v -t o1 |
awk '{
printf "printf %%b '\''";
for (i = 2; i <= NF; i++) {
printf "\\0%d", $i
}
printf "'\''\n"
}'
- What is the opposite of 'printf'?, Matthew Woehlke, 2006/12/11
- Re: What is the opposite of 'printf'?, Eric Blake, 2006/12/11
- Re: What is the opposite of 'printf'?, Bob Proulx, 2006/12/12
- Re: What is the opposite of 'printf'?, Matthew Woehlke, 2006/12/12
- Re: What is the opposite of 'printf'?, Matthew Woehlke, 2006/12/18
- Re: What is the opposite of 'printf'?,
Paul Eggert <=
- Re: What is the opposite of 'printf'?, Pádraig Brady, 2006/12/19