Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '/usr/bin/printf' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
/usr/bin/printf
Authored by: martinx on Mar 04, '03 05:58:46PM

printf is a bit more flexible, you can convert from hex back into decimal,
etc. It works just about like the C library function, only you run it from
the shell.

$ printf "%02X\n", 123
7B
$ printf "%d\n", 0x7B
123



[ Reply to This | # ]