uniq.1posix -d temp.xml %3E duplicates-only.xml
report or filter out repeated lines in a file
-d     Suppress the writing of lines that are not repeated in the input.
source manpages: uniq