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.

One Response to “Maths in bash shell”

  1. unixshell Says:

    The parent directory, http://snap.nlc.dcccd.edu/reference/, has loads more useful stuff, too.

Leave a Reply