Maths in bash shell

September 28, 2007

http://snap.nlc.dcccd.edu/reference/bash1/features_29.html has a bash-specific technique for processing calculations:

$[ expression ]
$(( expression ))

See the link for further details.


Follow

Get every new post delivered to your Inbox.