Doing this with grep-like tools is dangerous. E.g., xx/xxxx/xxxxxxxx.i looks the same in Windows as XX/XXXX/XXXXXXXX.i but is a lot more work to find using grep. Likewise,
{ xx/xxxx/xxxxx.i &filename }
and
{ xx/xxxx/xxxxx.i
&filename
}
are functionally equivalent, but hard to find using grep and similar tools.
The best solution is to do some scripting with the ProParse engine used by ProLint.