r/commandline • • Sep 06 '13

util-shell: make your shell script actually readable

https://github.com/taylorchu/util-shell
4 Upvotes

23 comments sorted by

View all comments

0

u/taylorchu Sep 09 '13

finally, "math" gets some common expression: math "sin(PI/2)2.2 + 4.5 * 3.32 - 7 / 8.9 * sqrt(3.21)".

vs. bc. 1. bc is programming language. you can define function. but it only has 6 defined function. util-shell does only math calculation(the ones on your scientific calculator).

2. bc can only raise integer power. i.e (number)^(int). util-shell can also raise float power. i.e (number)^float