Tuesday, August 19, 2008

Another way to do Arithmetic expansion

This is the third way to do arithmetic operations. First we looked at 'let' and 'expr' commands.
Now we use $ sign with two brackets.
example1:
echo $(( 5 * 6))

example2:
echo $(($((4 * 5)) + 300 ))

No comments: