On 11/27/2015 12:14 PM, Jon LaBadie wrote:
On Fri, Nov 27, 2015 at 09:57:11AM -0700, jd1008 wrote:
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) {
for (i = NR; i >= 1; i--) {
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?
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
End of included message <<<
Sorry John. It did not sort in reverse :(
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org