Five minutes? Reading it backwards, it's clear and obvious1 that it's a perlish implementation of grepping through all files in a series of directories. It takes a sub as the first param, which is used to determine if a given line matches or not, the rest of the params are the directory names to look in. It returns the list of files that have a match.
1 No, not really.
In reply to Re^2: grep text (alternative)
by Tanktalus
in thread grep text (alternative)
by songahji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |