RosettaCodeData/Task/Increment-a-numerical-string/UNIX-Shell/increment-a-numerical-string-1.sh
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

4 lines
165 B
Bash

# 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