|go ahead... be a heretic|
How to modify words in a line using perl onelinerby Anonymous Monk
|on Sep 30, 2009 at 10:16 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I would like to modify the word "first" into "last" in the second line of file one.txt could you kindly help.
I tried the following perl one liner, but it did not help. perl -ni.bak -e 'print s/first/last/' one.txt
Thanks a lot.