Try providing more meaningful sample files, and expected output. I'm not quite clear on what you're trying to achieve...