I want a little piece of software that can sort and delete a lot of urls from a notepad. I'm talking about notepads with 1.000.000 urls and more For example in a million url list I have 100 urls from a unique domain, 76 urls from another unique domain and so on. I want that program to sort and delete a number of urls from a unique domain. The final results will be a shorter notepad with only 10 or 20 urls from every unique domain. In this way I will not have anymore a list with let's say if I had 3000 domains and each domain has a rate of 50 urls = 150.000 urls. I will have 3000 domains with 10 urls each (I want to set this number from the software) = 30.000 urls ( Not all 150.000) I want the little piece of software to be very fast. I already have such a tool but it's very slow. I think is a java tool. When I sort 1 million urls I want to have the final results (less number of urls from every unique domain) in few minutes. I know it's a simple tool that can be made right away by an experienced c++ programmer