Suggestion:
perl -npi.bak -e 's:(\w+\d+\.data):testname/$1:g' file1.txt
In reply to Re^3: how to modify the text in file
by dse
in thread ho w to replace a occurence of string by other string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |