there are more files in the valid list than file1. that command seems to be giving me the unique address between both lists. I am trying to get a list of addresses, which hopefully is 0, that are not in the valid list.
I have played around with diff and started writing a perl script, but it was getting more complicated than I thought it should so I posted it here. Should be straight forward..
I am pulling what I need out of the original file using the following command:
"cut -d '|' -f 7 file1.txt | cut -d ':' -f 1 | sort | uniq -c | sort -nr"
so to answer..yes I am ok with unix/linux command line
I have a file with valid hosts. I want to make sure that there arenot any entries...
I have 2 files that I want to compare and mail the differences. One is file1 and one is a valid-host list. I want to make sure that the the contents of file1 is in the valid-host list. If there is an entry in file1 that is not in the valid-host list, I want to email it to an address.
Can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.