Most of us are familiar with the grep program. If you work on a *nix system you’ve almost certainly used it or one of its newer kin. These programs allow for globally searching files with a regular expression and printing the results. It’s so common we use it as a verb.
“Did you grep the code base before making that change?”
Are you familiar with its Ruby counterpart?
Ruby plays a bit fast and loose with the name but the underlying concept is similar.
Let’s see what
grep can do.