Linux.com

Korn -- an extended shell

Posted by: Anonymous [ip: 91.199.241.6] on May 05, 2008 05:55 PM
Sorry, but you say that arithmetics in bash are only possible indirectly, by piping through bc or awk or such. But the following works just fine in bash:

echo $((1+1))

Its documented also, for instance: http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-10.html#ss10.2

Cheers

#

Return to Korn -- an extended shell