OK now I am totally confused, the code you gave me worked perfect on the command line. It was Right aligned.
<CODE>ls -la | awk '{s[NR]=$5;if(l<length($5))l=length($5)}END{for(i=1;i in s;i++)printf"%"l"s\n",s[i]}'</CODE>
However when I tried to add it into my script and added this
<CODE>
for...