Sometimes you need to search and replace strings over multiple files. This can easily be done using perl. I found this tip from www.liamdelahunty.com/tips
Wednesday
Saturday
There was an error when you login Cpanel Can’t locate GDBM_File.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/build-tools/stubs /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Locale/Utils.pm line 14. Cpanel::Locale::Utils::BEGIN() called at GDBM_File.pm line 14 eval {…} called at GDBM_File.pm line 14 require Cpanel/Locale/Utils.pm called at /usr/local/cpanel/Cpanel/Locale.pm line 15 Cpanel::Locale::BEGIN() called at GDBM_File.pm line 14 [...]
Wednesday
httpd has mod_cgi module that allows you running Perl and other server side programs via cgi-bin directory. The Common Gateway Interface (CGI) is a standard protocol for interfacing external application software with an information server.
Thursday
Q. How do I replace a string with another string in all files? For example, ~/foo directory has 100s of text file and I’d like to find out xyz string and replace with abc. I’d like to use sed or any other tool to replace all occurrence of the word. A.sed command is designed for [...]