I have many files with info about soft, installed on remote machines.
I need to compare this file with template (soft than must be installed) and output file must content info about software that's not installed.
Code:
template.txt
software_name1
software_name2
software_name3.1
Code:
workstation1_info.txt
software_name3.2
Lantronix
..any other software
software_name1
output must be software_name2, becouse it is not installed, but software_name3.2 is good enough becouse version is more than we need.
So, the task is to show lines that is in template and not in source, using simple regular expressions
I use grep
Code:
grep -vxf template source >out
or
Code:
grep -Fvf template source >out
But it shows me only lines that is in source and not in template etc...
I need so fast to solve this problem, becouse it is deadly urgent case.
Please help me.
Bookmarks