|
Without an example, it's hard to guess. The example you posted so far only has 12345 and asdfghjkl, which of those is supposed to be an IP address?
Maybe it would be easier if you split the single file into multiple files first. Then it's a simple matter of grep -l IP=whatever files
|