You may need to change my quotes if not working on Unix.perl -pi.bak -e 's/(SW_V02\.)(\d\d)/$1 . sprintf("%02d", $2 + 1)/e;' f +ilename.txt
Cheers,
JohnGG
In reply to Re^2: Modifying File Contents
by johngg
in thread Modifying File Contents
by ramthen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |