I'm looking for a tool to split a datafeed. I can do this manually using excel or another tool but it is tedious and time consuming.

What I want is a script(php) or a tool which can check a database for a given keyword an output a branch of feed with corresponding information. It will be nice if I can provide a list of keyword insteed of only one word.