Guest Posted March 13, 2004 Share Posted March 13, 2004 sort of. There is a contrib that has the same goal, but it has the same weakness that this one does - - it can't strip out the duplicate product entries when they are in multiple categories. Now that I think about it, it seems like a buddy of mine wrote up a shell script for me to do just that - - remove lines from a file based on one of the pieces of a file. I bet that we can figure this out . . . Probably something like this would remove the duplicates: 1) "sort" based on column offer_id and/or column product_id 2) if (current_line.offer_id == previous_line.offer_id) OR (current_line.product_id == previous_line.product_id) then "cut" current_line. I'm not a good shell script author, but I'm sure that one of us can figure this out and add it to the existing code. -jared Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.