<div>But "#diff -y" compares the two files in line-by-line basis . But my two files do not have one-to-one correspondence , say row#1 in file1 maybe the same as say row#5 in file2 . So I seek a way that does not consider this as a difference (but diff will consider).</div>

<div><br><br> </div>
<div class="gmail_quote">On Wed, Dec 2, 2009 at 9:47 AM, Brian McKerr <span dir="ltr"><<a href="mailto:bmckerr@gmail.com">bmckerr@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">diff -y ? 
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">On Wed, Dec 2, 2009 at 7:42 PM, Simon Banton <span dir="ltr"><<a href="mailto:centos@web.org.uk" target="_blank">centos@web.org.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div>At 08:54 +0000 2/12/09, hadi motamedi wrote:<br>>Dear All<br>>Can you please do me favor and let me know how can I compare two<br>>files but not in line-by-line basis on my CentOS server ? I mean say<br>>row#1 in file1 has the same data as say row#5 in file2 , but the<br>
>comm compares them in line-by-line basis that is not intended . It<br>>seems that the diff cannot do the job as well<br><br></div></div>This'll show you which lines are common to both files, and for the<br>ones that aren't which file they're in.<br>
<br>perl -MData::Dumper -le 'while(<>) {chomp; push @{$s->{"$_"}},<br>$ARGV}; END{ print Dumper($s) }' file1 file2<br><br>... someone will be along shortly with a more elegant method.<br><br>HTH<br>
<br>S.<br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org" target="_blank">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br></div></div><br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br></blockquote></div><br>