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