Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I would like to modify the word "first" into "last" in the second line of file one.txt could you kindly help.
Input File(one.txt)
I tried the following perl one liner, but it did not help. perl -ni.bak -e 'print s/first/last/' one.txt
I would like to modify the word "first" into "last" in the second line of file one.txt could you kindly help.
Input File(one.txt)
#verify_custom fleet part=first base=first after base
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.Expected Output: #verify_custom fleet part=last base=last after base
Back to
Seekers of Perl Wisdom