Here's a way to compare two files that have common lines in both files:
sort file1.txt > file1_sorted.txt
sort file2.txt > file2_sorted.txt
comm -12 file1_sorted.txt file2_sorted.txt
Note: files need to be sorted first prior to comparing.
commcomparing files line by lineSubmitted by sandip on Thu, 03/26/2009 - 22:48Here's a way to compare two files that have common lines in both files: sort file1.txt > file1_sorted.txt Note: files need to be sorted first prior to comparing. »
|
User loginRecent blog posts
Who's onlineThere are currently 0 users and 7 guests online.
|