Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Yes, you are right, except additionally I want to do an arithmetic function with a variable. Commented Aug 11, 2015 at 11:55
  • Can you give an example of this arithmetic function? Do you need the variable name (like "THIRD") for it or just the index value? Commented Aug 11, 2015 at 12:01
  • SUM=$(($6 + $i)); echo $SUM"q;d", I see what I was doing wrong. Commented Aug 11, 2015 at 12:09