char pyramid by nn

gsub(/./,"& "){for(s=$0;sub(r="[^ ]",_,s);s=s FS)s~r&&$0=s RS$0}1

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

download

return to the top page