in reply to sprintf minor problem


and what should I be writing?

Probably something like this:

printf "%-5d hello\n", 1;

The folowing formats may also be suitable: %5d, %05d, %5.5f. The format in your example, %5.5d, isn't probably what you want.

--
John.