No, use buildin things of sh(1). This runs much faster than the awk(1) example.
while :
do
case "${field}" in
??????????*)
break;;
esac
field="${field} "
done
Now ${field} is at least 10 charcters long (the '*' at the end of ?????????? avoids infinite loops).
The above loop should pad field with the right number of spaces to make it 10 characters long. You can get unexpected results if field already containted more than 10 chars or some funny chars like tabs or newlines,...
--
Pawel Nabe PaN Super Sonic Software Service
Business: +49/711/821 71 786 expert for hi tech & low budget