An interesting sort problem
jd1008
jd1008 at gmail.com
Fri Nov 27 16:57:11 UTC 2015
On 11/27/2015 03:29 AM, Andrew Haley wrote:
> #!/bin/awk -f
> {
> lines[NR]=$NF " " $0
> }
>
> END {
> PROCINFO["sorted_in"]="@val_type_asc"
> for (i in lines) {
> line = lines[i]
> j=index(line, " ")
> print substr(line, j+1)
> }
> }
Hi Andrew,
manpage for awk does not betray any info on making sort in reverse.
What is the incantation in this script to make the sort in reverse?
More information about the users
mailing list