On 2008-04-04, Parvinder Bhasin <[EMAIL PROTECTED]> wrote:
> OLD=`grep serial $file | awk '{print $1}'`
> NEW=$(($OLD + 1))
> *perl -p -i -e 's/$OLD/$NEW/' $filehopefully the other posts should get you going, but beware! also search for the text 'serial' when you do the substitution, otherwise one day you will probably get bitten by subst'ing the wrong thing.

