Pdreyer,
Thanks. Your suggestion just worked fine.
Stolze,
Thanks for your response on a different variation to this. Though I got what I needed, I was equally curious to try your solution. Maybe due to the way we have set up or so(not sure), but I got a bunch of errors stating
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- q