Continuing wth my problem... I am reading a flat file with awk and picking out the first ten characters of each record using substr($0,1,10) and outputting with a printf. That works fine. In these first ten bytes are character strings that are left justified (starting in col 1) and padded with spaces. There are no imbedded blanks. How can I right justify these character strings and pad with leading spaces on the output?