awk ' { printf"relocate %s %s\n",$4,$3 if ($1 < 10) { printf"putlabel 9 %1d\n",$1 next } if ($1 < 100) { printf"putlabel 9 %2d\n",$1 next } if ($1 < 1000) printf"putlabel 9 %3d\n",$1 else printf"putlabel 9 %4d\n",$1 } '