To Replace string within text files using Perl all you have to do is:
perl -pi -e 's/oldstring/newstring/g' *
The search string has to be written in regular expression format so if you plan to replace for example a path with slashes such as "/my/path"
to "/new/path"
you have to mask the special characters by using backslashes like this:
perl -pi -e 's//my/path//new/path/g' *
and that’s it.
HTTP/2 SSL Offloading with Hitch and Varnish Since Chrome browsers showing you insecure warning on…
File changed as we read it GlusterFS issue Recently i had trouble running Backups of…
Running multiple instances of varnish using systemd If you have not yet found a complete…
HTTP/2 SSL Offloading with Haproxy and Nginx After HTTP/2 becoming more an more prominent regarding SSL…
Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for Everyone knows the Problem. Get…
Review TDS2 How to backtest using tick data with Metatrader 4 in this Review TDS2…
This website uses cookies.