cheat sheets.

$ cheat sprintf
--- sprintf version 22	Tue Oct 03 21:25:38 +0000 2006
+++ sprintf version 26	Thu Oct 02 19:32:08 +0000 2008
@@ -1,6 +1,13 @@
-%s => string
-%d => number
-%f => float
-%02d => 0 padded two digits
+%b    => Binary integer
+%c    => Single character
+%d    => Decimal integer
+%e    => Decimal integer displayed in exponential form
+%f    => Floating point number
+%g    => Same as %e if exponent is less than -4, %f otherwise
+%o    => Octal integer
+%s    => String
+%u    => Unsigned decimal integer
+%x    => Hexadecimal integer
+%02d  => 0 padded two digits
 %.02f => round to the hundredths
( add new | see all )