Extracting data from log file w/ pattern recognition
Posted on 1997-06-10
What is the best way to assign variables to data in a log file?
If I wanted to extract the IP address for the latest log-on of a user from the pm.log file in /var/log to use to compare it to another IP address, how would I instruct perl to find the IP address for that user at that time in that log file?
I've tried pattern recognition, but can't get it to work properly What would be the syntax if I used patern recog?.