in reply to Re^3: Find duplicate lines from the file and write it into new file.in thread Find duplicate lines from the file and write it into new file.
sort foo.txt | uniq -d [download]