Replace text in a file
If you wish to replace the text from bob to doug in the file called file.txt
perl -pi -e “s#bob#doug#ig” file.txt
If you wish to replace the text from bob to doug in the file called file.txt
perl -pi -e “s#bob#doug#ig” file.txt