Use Perl command line to do global search and replace with backup file
If you need to search and replace a string globally, Perl is perfect for the job. Use the following command.