I need to develop a function incrementor that increments a given number that is passed as an argument (this should use eval). so, am not able to get much info on eval by googling (perticularly on incrementing).
please if any one can help me out.
Post whatever you have attempted so far. You are more likely to get assistance if you demonstrate that you have attempted something, and specify which shell etc you require assistance with.
set 2
echo "$1"
# here n may represent an expr value, in this case i want to display a $ value of n value with incrementation ( some where i require this)
n=1
echo $($n)
please help me out if u know