Comparar 2 archivos y agregas lineas faltantes

Hi

I have 2 files where i save the IP adress of many printers that work on UNIX, one of these files, which is the 'Main File', is on a server call PROD, and the other one is on a different server call Al.

What I want, is to make a comparison between the 2 files, and then, copy the IPs that exist on the server PROD that are not on the Al server.

I understand that the diff command may be useful but I don't get the way yet.

Thax a lot!

Can you translate that in english?????

There it is, I Hope is Ok.

Thanx

simply you can use grep command for this
suppose file1 is prod file and file2 is Al server file
then type

grep -v -f  file2 file1 > file3

Thanx a lot man!!!, it works perfectly.

See ya.