How to increment particular variable in shell script?
by Nirmala[ Edit ] 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.