Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
# All variables are strings within the shell
|
||||
# Although num look like a number, it is in fact a numerical string
|
||||
num=5
|
||||
num=`expr $num + 1` # Increment the number
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
num=5
|
||||
let num=num+1 # Increment the number
|
||||
let "num = num + 1" # Increment again. (We can use spaces inside quotes)
|
||||
((num = num + 1)) # This time we use doublebrackets
|
||||
let num+=1 # This time we use +=
|
||||
let "num += 1"
|
||||
((num += 1))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
integer num=5 # Declare an integer...
|
||||
num=$num+1 # ...then increment without the let keyword.
|
||||
Loading…
Add table
Add a link
Reference in a new issue