perl -ni.bak -e 's/first/last/g if $. == 2; print' one.txt
In reply to Re^2: How to modify words in a line using perl oneliner
by Bloodnok
in thread How to modify words in a line using perl oneliner
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |