Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://unix.stackexchange.com/questions/55069/how-to-add-arithmetic-variables-in-a-script

#!/bin/bash

foo=10
bar=3

result=`expr $foo + $bar`
echo "$result"
  • No labels