Maths in bash shell
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.
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.
September 30, 2007 at 12:29 am
The parent directory, http://snap.nlc.dcccd.edu/reference/, has loads more useful stuff, too.