hi,
I am comparing 2 TXT files, each one has millions of rows, to know the differed rows.
How can I hide common rows in the resultant files? please help.
My command: diff -u -w <sort file1) <(sort file2) > file3.res
My file1:
a1 Bala
a2 vup
a3 jivup
My file2:
a1 Bala
a2 Vup
a3 jivup
b1 abc
file3.res from present command:
a1 Bala
a3 jivup
-a2 vup
+a2 Vup
+b1 abc
O/p file that I want to seehide all common rows, show only differed rows)
-a2 vup
+a2 Vup
+b1 abc
Cheers,
BauV
I am comparing 2 TXT files, each one has millions of rows, to know the differed rows.
How can I hide common rows in the resultant files? please help.
My command: diff -u -w <sort file1) <(sort file2) > file3.res
My file1:
a1 Bala
a2 vup
a3 jivup
My file2:
a1 Bala
a2 Vup
a3 jivup
b1 abc
file3.res from present command:
a1 Bala
a3 jivup
-a2 vup
+a2 Vup
+b1 abc
O/p file that I want to seehide all common rows, show only differed rows)
-a2 vup
+a2 Vup
+b1 abc
Cheers,
BauV