Back and forth by nn

BEGIN{RS=" |\n"}{for(s=j=_;c=substr($0,++j,1);)s=c s
NR%2?s=$0:i-=j
printf"%"i"s"s"\n",_
NR%2&&i+=j}

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

download

return to the top page