How to find duplicate lines in 2 files

sort |uniq -d

sort will sort the file contents concatenates to the standard output and uniq will filter the adjacent matching lines, -d option of uniq will print the duplicate lines.

Archives

Recent comments

About the Author

Yogi

17 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.