Unique duplicate lines:
Total duplicate lines:
Find duplicates lines of text in a list. The duplicate lines are returned in a separate list ordered by when each line was determined to be a duplicate. Each entry in the list should be separated by a newline.