Search one file to see if it contains information from another file
2
votes
2
answers
2064
views
I have two files. The first is
unip.txt
and the second is ipex.txt
and each file contains IP addresses.
unip.txt
:
49.235.113.205
50.115.166.136
51.15.70.104
51.15.87.74
51.15.134.103
146.148.13.9
148.70.23.131
148.72.212.161
148.216.29.46
149.56.141.193
ipex.txt
:
51.15.134.103
148.70.23.131
151.141.0.0
97.89.32.238
I'm trying to figure out how to basically search the unip.txt
file to see if it contains any IP from the ipex.txt
file. I imagine that it would be a loop to search through every line, but I'm not sure how to do it.
Asked by newguy202020
(23 rep)
Apr 28, 2021, 01:01 AM
Last activity: Jun 9, 2025, 04:36 PM
Last activity: Jun 9, 2025, 04:36 PM