Shell-script - How to increment particular variable in shell script, Shell scripting increment a variable

How to increment particular variable in shell script


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.

The topic on Shell-script - How to increment particular variable in shell script is posted by - Mylove

Hope you have enjoyed, Shell-script - How to increment particular variable in shell scriptThanks for your time

Tech Bluff