f(){ IFS=/ read a b for((m=a,n=b;p=n%m;m=p)){ n=$m;} p=$[a/m]/$[b/m] echo ${p%/1} f } f
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page