Feature request: PRP "grep"

I find the PageEditor tool to be of immense value. Whenever the question comes up, "How did Cyan do that?" I call up that PRP and find that out. It's also useful to look for examples when coding up something similar in AlcScript, especially responder modifiers. However, after manually searching through object after object (and PRP after PRP) for the example I'm looking for, it gets tedious really fast.
So, I'm requesting a command-line search mechanism. The usage would be:
prpgrep <substring> <path-to-dat-folder>
[Note for non-Unix people: 'grep' is a command used to search for a substring in a collection of files.]
The utility would loop through each PRP file, expand each object into an internal XML buffer (like it does in PageEditor) and report on any case-insensitive matching substring. For example, suppose I issue the command:
It would report each usage of kEnable by listing the PRP file name, PRP object type, name and the text of the line, such as:
It may take a while to execute, but it would be much faster than doing it manually. I think it would be incredibly useful and save a bunch of time.
What do you think? Is it do-able?
For extra credit, the path argument could be made optional. The first time the command is used, the user would have to provide the path. prpgrep would store it somewhere (e.g. Windows registry). The next time the command is used, if the path argument is skipped, it just retrieves the stored value.
So, I'm requesting a command-line search mechanism. The usage would be:
prpgrep <substring> <path-to-dat-folder>
[Note for non-Unix people: 'grep' is a command used to search for a substring in a collection of files.]
The utility would loop through each PRP file, expand each object into an internal XML buffer (like it does in PageEditor) and report on any case-insensitive matching substring. For example, suppose I issue the command:
prpgrep kEnable "c:\Program Files\URU\dat"
It would report each usage of kEnable by listing the PRP file name, PRP object type, name and the text of the line, such as:
Kadish_District_kdshPillars.prp: ResponderModifier: cRespSecretDoorClose: <hsBitVector>kEnable </hsBitVector>
It may take a while to execute, but it would be much faster than doing it manually. I think it would be incredibly useful and save a bunch of time.
What do you think? Is it do-able?
For extra credit, the path argument could be made optional. The first time the command is used, the user would have to provide the path. prpgrep would store it somewhere (e.g. Windows registry). The next time the command is used, if the path argument is skipped, it just retrieves the stored value.