in reply to Formating a printf statement using a variable
$a="%-2s"; printf $a,$b; $c="2s"; printf "%-$c",$b; [download]
mr.nick ...