Grep the non-matching lines

view story

http://www.unix.com – Hi, I need to make a script to extract the number that are not in a file. Example: I have file-A that has 100000 (70000-799999) numbers. And a file-B with number that already are in the system. Now I need to know/get the numbers that are not in system. I was thinking something like this: cat file-A | grep -v "file-b" >> file-C but it is not posible to grep -v from a text file. Maybe a loop file ? :confused: Advise please. tnx:) Code: file-A: 700000 700001 700002 700003 700004 700005 700006 700007 .. .. 799997 799998 799999 Code: (HowTos)