sort by first occurrence by I., S.

!C[$0]++{K[i++]=$0}END{for(;$0=K[j++];)for(;C[$0]--;)print}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page