The other day whe had a stressfull moment. We noticed that one of our passwords was visibile in clear in one of our log files. We new that one of our scripts was responsible for that. But whe only had one question : “Which one ?”.


We realized that whe had sooo many scripts, that going through all of them would take for FOREVER ! I wrote recurse script that would find a specefic occurence in any text type of file (which means any script file actually).


find the script below :


The function can be called as followed in order to find any specefic word in a text file whitin a hierarchy.