Back and forth by tails

s/^/:/
:
$!N
s/\( *:\)\(.\)\|  \(\S*>\)\(.\)/\2 \1\4\3/
s/\( *\):\s/\n\1>/
s/\(\( *\)\S*\)>\s/\1\n\2#\2:/
t
s/[:>#]//g

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

download

return to the top page