Need quick help - search for list of numbers within a bigger list

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
I have a list of a few thousand 6 digit numbers

I have a much bigger list with 6 digit numbers and words and other crap.


I want to search the big list to see how many of the small list shows up in the big list. if any in the small list dont show up, tell me which ones.

I know this is easy but I dont know which tool. I have a linux or windows box I can use, ms office or whatever windows programs or I can use grep or whatever. thanks for any quick answer!

 

kranky

Elite Member
Oct 9, 1999
21,019
156
106
Use a shell script that reads the first list and uses grep to tell you how many times each number appears in the second list. Then output the whole thing to a file.
 

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
okay no time for poking thru man pages, I found a tool 'powergrep' for windows which is working for me for now. will refine the process later