Re: duplicate entries - compare files
- From: "Hubble" <reiner@xxxxxxxxx>
- Date: 27 Sep 2006 22:43:33 -0700
tester wrote:
Hi Gurus,
I need to compare two files which shows me ONLY duplicate entries
(entry common to both files)
i tried "comm" command but it doesn't show me correctly or may be i am
not using it correctly.
Please Help
Regards
You have to sort the files before using commm. Another simple solution
is to use the -d option of uniq (after sorting, of course):
sort file1 file2 | uniq -d
Hubble.
.
- References:
- duplicate entries - compare files
- From: tester
- duplicate entries - compare files
- Prev by Date: Re: finding libraries
- Next by Date: Re: finding libraries
- Previous by thread: Re: duplicate entries - compare files
- Next by thread: Re: duplicate entries - compare files
- Index(es):
Relevant Pages
|