{for(j=$0;j-=i!=j-1;){$(i+=i!=j+1)=$j=NF="X";print}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page