Comment Re:echo is good enough for me. (Score 1) 289
Still can be simplified with s/echo/sed/ if you cheat with an input file
IIRC I use something that could be translated to:
$ function math { sed "{s|^.*|scale=2; $*|; s|x|*|g; s|,||g;q;}"
As always, there is a bunch of ways of skin the cat with shell commands.