I have a small issue. Within a Korn shell script, I want to dedupe a file. I want two outputs: the deduped results (output to a flat file), and all the duplicate records that got thrown out during the deduplication process (outputted to a second flat file). How would I go about this. I mean, I know deduping a file is very easy, I just don't know how to capture the "discarded" records into a file... Anyone??