Bash: evaluate a mathematical term?

hhh picture hhh · Mar 31, 2010 · Viewed 47.7k times · Source
echo 3+3

How can I evaluate such expressions in Bash, in this case to 6?

Answer

Marcelo Cantos picture Marcelo Cantos · Mar 31, 2010
echo $(( 3+3 ))