View unique IPs from list
Budget: $10 – $30 USD
I have a list with an IP address on each line in IPs.txt - There are many similar IP addresses, I would like a python or shell script that can show the unique IP addresses, ie if an IP appears 10 times in the list, then it should ONLY be displayed once in output.
Output should be displayed like this
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
Output should be displayed like this
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP
iptables -I INPUT -s IPADRESS -j DROP