# $0: entire line.
$ echo 'one two three' | awk '{print $0}'
# $1: first field, $2: second field,
$ echo 'one two three' | awk '{print $1, $2}'
printf format, ...
format: %[flags][width][.precision][length]specifier
flags: -, +, #, 0, (space).
width: *, (number).
precision: *, (number).
length: hh, h, ll, l, j, z, t, L, (none).
specifier: d, i, u, o, x, X, f, F, e, E, g, G, a, A, c, s, p, n, %.
# padding space to fixed length 8
$ echo "15" | awk '{printf "%8d", $1}'
15
# padding zero to fixed length 8
$ echo "15" | awk '{printf "%08d", $1}'
00000015
# padding zero to fixed length 8 in hex
$ echo "15" | awk '{printf "%08x", $1}'
0000000f
$ echo "15" | awk '{printf "%#08x", $1}'
0x00000f