Why can't I do this simple arithmetic operation and store it in a variable in bash shell? I've been struggling with this and playing around with ()
and $
symbols but no luck.
read t
let r=$(5/9)*$($t-32)
I get a: let: r=*: syntax error: operand expected (error token is "*")