I have a .sh file that has this.
I'm passing an integer to the file in $0
...
period=20000
period=period+($0*1000)
echo "$period"
...
What I'm trying to do is period = period + ($0 * 1000)
The second line is giving me a syntax error and I want to know how to do this correctly.
I've tried using (($0*1000))
but no difference.
I've also tried
smth=1000*$3
period=period+smth
and I get
20000000+1000*