Check the duplicates in os