Cross Product of two Strings by yamaya

{for(;c=substr($1,++i,1);gsub(/./,c"& ",s)(t=t s))s=$2;$0=t}sub(/.$/,t=i=_)

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

download

return to the top page