I am trying to extract uncommon text from the file and I have tried this:
awk 'FNR==NR {a[$0]++; next} !a[$0]' 1.txt 2.txt
http://PQR.com
http://example.com
Here are the input files:
File: 1.txt
http://google.com
http://GOOGLE.com
http://example1.com
http://seperate.com
http://pqr.com
File: 2.txt
http://PQR.com
http://example.com
http://google.com
As you can see, http://pqr.com
is available in file 1.txt
and http://PQR.com
in 2.txt
. and the result display http://PQR.com
, which is common in both file. Hence, how I can show only the uncommon text (not depending upon the cases of the text)?