I have two files:
smw:/working/iso_testing # cat a
QConvergeConsoleCLI-1.1.03-49.x86_64.rpm
aaa_base-13.2+git20140911.61c1681-1.3.i586.rpm
acpica-20140724-2.1.2.i586.rpm
test.rpm
AND
smw:/working/iso_testing # cat b
QConvergeConsoleCLI-1.1.03-49.x86_64.rpm
aaa_base-13.2+git20140911.61c1681-1.3.i586.rpm
acpica-20140724-2.1.2.i586.rpm
--If I diff them I see this:
smw:/working/iso_testing # diff a b
4d3
< test.rpm
I want to take THAT output (test.rpm) and grep it out of a third file. A.K.A. file c:
smw:/working/iso_testing # cat c
QConvergeConsoleCLI QConvergeConsoleCLI-1.1.03-49.x86_64.rpm
aaa_base aaa_base-13.2+git20140911.61c1681-1.3.i586.rpm
acpica acpica-20140724-2.1.2.i586.rpm
test test.rpm
My desired output would look something like
test test.rpm
Perhaps I have to many files to begin with but I'm stuck. Thanks in advance
File A is the list or rpm's from one repo, file B is a list of rpm's from a .csv file, and file C is a copy of file B but with package names, not just the rpm.***