Replace bunch of string on a text file using Perl
Linux February 20th, 2009Perl command can be use to replace bunch of words in a text file below is the command
perl -i.bak -pe ‘s|wordtoreplace|replacewithword|g’ *.txt
Perl command can be use to replace bunch of words in a text file below is the command
perl -i.bak -pe ‘s|wordtoreplace|replacewithword|g’ *.txt
Recent Comments