Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash substract varible

$((expression))

$a=5

yourname_$(($a-1))
#will give
yourname_4

gamma_new="$(($gamma_t-360))"
num2="$(($num1+num2))"
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #substract #varible
ADD COMMENT
Topic
Name
8+1 =