printf "%05d", 32; # prints an integer 5 digits wide, with leading zeroes, ie. 00032 printf "%32s", 'foo'; # prints the word 'foo' into an area 32 characters wide