Re: Inquiry:How to compare two files but not in line-by-line basis?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



hadi motamedi wrote:
> Dear All
> Can you please do me favor and let me know how can I compare two files 
> but not in line-by-line basis on my CentOS server ? I mean say row#1 in 
> file1 has the same data as say row#5 in file2 , but the comm compares 
> them in line-by-line basis that is not intended . It seems that the diff 
> cannot do the job as well .

Diff should resync after showing the some lines have been inserted.  If it shows 
that no lines match when you think that some do, it may mean the files have 
different line endings.  Was one created under windows or transferred in a way 
that could change them?

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux