perl -MIO::All -E 's/(\d+)/$1+1/e for @{io("/tmp/amvarma.txt")}' [download]
In reply to Re: Script to update a value in text file by Boldra in thread Script to update a value in text file by amvarma