I have a honeypot set up and would like to analyse the sources of the many brute force attacks. I would like to extract all the IP addresses and add them in a list formation to another file. The script would then be part of a cron job with additional unique IP's appended to the bottom of the list file.
How do I extract IP addresses from a log file and list them in another file?