Cancel fractions by eban

for((;;)){
IFS=/ read a b
x=a
for((y=b;x=y%(y=x);)){ :;}
echo $[a/y]/$[b/y]
}|sed s,/1$,,

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

download

return to the top page