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.
Advertisements
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.
The parent directory, http://snap.nlc.dcccd.edu/reference/, has loads more useful stuff, too.