divide rectangles by llhuii

awk '0<c=$3$4{q=(p=NR-3+2*$1)/$1;for(a=l/c+3;NR=p;)printf++i-a*c?i*i%a-1?p%q<2&&i%a?"-":" ":p%q<2?"+":"|":i=A[p--]RS}l=NF-2{}FS=e'

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

download

return to the top page