Created
August 2, 2014 06:44
-
-
Save anonymous/d8e99826e3a947d02c8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat input | awk '{for(i=2;i<=NF;i++){a[i]=$i}printf $1;PROCINFO["sorted_in"]="@val_num_desc";for(i in a){printf " %s", a[i]}print ""}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment