Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

incrementing a varibale gives 1 not found in bash

Prompt> var1=1
Prompt> var2=$((var1+1))
Prompt> echo $var2
2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #incrementing #varibale #bash
ADD COMMENT
Topic
Name
7+4 =