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.
comparing files line by line
Submitted by sandip on Thu, 03/26/2009 - 22:48
Here'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. »
|
See AlsoUser loginRecent blog posts
Who's onlineThere are currently 0 users and 8 guests online.
|