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.
In reply to Re: sprintf minor problem
by jmcnamara
in thread sprintf minor problem
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |