
asandybox
Novice
Jun 19, 2012, 11:48 AM
Views: 7635
|
|
Re: [asandybox] Stuck on how to iterate a list in a file against a logfile.
|
|
|
I attempted to use the following:
if ($url =~ /help.$ip/) { print; } Because I figured what if I tried to key off the 6th field and match: http://help.example.com.org/search/sss? This way I can just add help.example.com to my ip.txt file and the for loop would add it into the list of items to search.
(This post was edited by asandybox on Jun 19, 2012, 11:49 AM)
|