I have two gz files. I want to compare those files without extracting. for example:
first file is number.txt.gz – inside that file:
1111,589,3698,
2222,598,4589,
3333,478,2695,
4444,258,3694,
second file – xxx.txt.gz:
1111,589,3698,
2222,598,4589,
I want to compare any column between those files. If column1 in first file is equal to the 1st column of second file means I want output like this:
1111,589,3698,
2222,598,4589,
exact answer i want is this only
. instead of awk, nawk works perfectly and it’s gzip file so use gzcat