This will update the line as desired:
s/(,)([^,]+)/ $1 . ($2 + 1) /e
Update: As others have pointed out, you also have problems regarding trying to change the file in place. I didn't (notice or) address that.
In reply to Re: replace field
by ikegami
in thread replace field
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |