How to increment particular variable in shell script?

by Nirmala 2010-01-25 15:34:44

Increment operation
Use the below code to increment the particular variable.
gg=0
gg=`expr $gg + 1`
echo $gg

expr command is used to increment the particular variable.

Tagged in:

1070
like
0
dislike
0
mail
flag

You must LOGIN to add comments