in reply to Editing files...please help
Something simple like this might work for you:------file vegeta-44 matriz-22 evac-500 fritzilldo-200 teenreality-15 ------------
I might suggest that you put your data in a "real" data format, such as via dbmopen or tie a DB_File to a hash. Then your changes could be as simple as:perl -pi.bak -e 's/(?<=vegeta-)(\d+)/$1 + 6/e' memberpoints.txt
Likewise, a CSV file with DBD::CSV could be updated with a simple DBI 'update'.$hash{vegeta} += 6;
|
|---|