in reply to Best way to edit a file?
perl -p -i.bak -e 's/ABC/DEF/' filename #will save original as .bak
(: Life is short enjoy it :)
|
---|
In Section
Seekers of Perl Wisdom
in reply to Best way to edit a file?
perl -p -i.bak -e 's/ABC/DEF/' filename #will save original as .bak
|
---|