Maybe also add in boundaries, just in case? Firstly, blast, etc...
perl -ni.bak -e 's/\bfirst\b/last/g; print' one.txtIn reply to Re^2: How to modify words in a line using perl oneliner
by BioLion
in thread How to modify words in a line using perl oneliner
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |