Posted By

miceno on 01/09/11


Tagged

add


Versions (?)

Bash – How to add integers


 / Published in: Bash
 

URL: http://www.notesbit.com/index.php/scripts-unix/linux-unix-shell-script-how-to-add-integers-in-bash-sample/

  1. a=1
  2. b=3
  3. c=$(($a $b))
  4. echo "c=$c"

Report this snippet  

You need to login to post a comment.