Cacomania: Search all config files for a specific term

Cacomania

Search all config files for a specific term

Guido Krömer - 23. April 2013 - Tags: , ,

A common problem, which of all ini file contains the part loading module XYZ?

The find command below searches all ini files in the /etc folder for the term "mysqli".

$ find /etc -name "*.ini" -printf "echo \"FILE: %f\"\ngrep \"mysqli\" %h/%f\n" | bash