On 11/12/2015 07:38 PM, Michael Hennebry wrote:
Awk can do what you want: { lines[NR]=$NF " " $0 }
END { PROCINFO["sorted_in"]="@val_type_asc" for line in lines { j=index(line, " ") print substr(line, j+1) }
Sorry, but, since this is being archived, could you please dot the i's and cross the t's ?
I assume $0 is the name of the file ?? Where is BEGIN?
Why are the single quote marks missing?
As you script stands, it is full of syntax errors.