comparison of files

Brent Bailey mrb at bmyster.com
Tue Dec 16 13:19:51 PST 2003


hello,

I have been trying to write a shell script that will compare 2 files and
generate a 3rd.

i have a list of abusive IP's generated by our router. I want to compare
it against a list of known abuse IPs ..and have it create a file of repeat
offenders.

ive tired to use "comm" to compare file1 against file2 doing something like

comm -12i file1 file2 >file3

however it doesnt seem to work....any suggestions ?

thank you for all your help in advance
-- 
Brent Bailey CCNA
Bmyster LLC
Computer Networking and Webhosting
Network Engineer, Webmaster, President
http://www.bmyster.com
mrb at bmyster.com
207-247-8330





More information about the freebsd-questions mailing list