Hi,
I have 2 large log files in .gz format
file1.gz contains
abcde
12345
23456
.
.
.
.
.
.
.
.
09123
file2.gz contains
abcde,1,2,3,4,5,6,7
09123,3,4,5,6,7,7,8
23456,9,6,5,4,3,2,1
....
...
...
...
I am basically looking for a script to open the file1 , read line by line and verify if the string matches in file 2 then redirect matching lines to one more file 3 , the string match should be irrespective of position they occur in file2. and output the file also should be compressed in .gz format.
Since i have a space limitation i need a script that can be executed in the compressed format only