Tag: perl

Search and replace text in many files

This is a handy one liner that searches and replaces text in multiple files. (You can use find for example to run it in multiple folders) perl -pi -e ‘s/old_text/new_text/g’ *.conf This line replaces old_text with new_text in all the…

BackupPC – can't find Compress::Zlib

It all started with an update for perl by our lovely CentOS. After that backuppc complained about ¬†Compress::Zlib. I tried installing it from CPAN but it didn’t work: Undefined subroutine &Compress::Zlib::gzopen called. One proposed fix was to remove everything Zlib…

Nagios Grapher fun

I was struggling with Nagios Grapher (or was it nagiosgraph – I tested both)¬† in Slackware 13.1 After installing all dependencies it would still refuse to work. I tracked the problem pretty easy to be related to Perl not being…