Sometimes in my small shell script i’ve to do some math, usually nothing too complex but it’s useful to do the math inside the bash script. Bash it’s really complete and among the many builtin functions there are also some mathematical functions. Using the syntax $((expression)) you can evaluate the expression. Operations allowed are quite […]
Doing calculations using bash
- 12/31/2011
- Doing calculations using bash
- Posted by Riccardo at 00:14
- 2 Responses
- Articles, Guides
- Tagged with: bash, bash shell math, Environment variable, linux, operating systems, Relational operator, shell, unix