partition by parity by nn

{a[$1]++}END{for(i=0;i<1e5;i++)for(;a[""i]--;)i%2?o=o i RS:e=e i RS;print e RS o}

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

download

return to the top page