I'm looking for the string
SUCCESS into the
file_2 which in this case looks for the string and prints it based on whether its there on only
file_1 or on both
file_2 while I'm looking it to print only once either its on both the file of one. How that can be done?
$ grep SUCCESS file_1 file_2
file_1:Host fox_01 is SUCCESS file_2:Host fox_02 is SUCCESS file_2:Host fox_01 is SUCCESS
I'm open to any advice or solution, not necessarily grep.