Extract IP Addresses from a text file...

© 2022 www.JaxBeachTech.com  |  Ph: 9o4.834.o433  |   email  |  [50.41]

Submitted by admin on Wed, 12/19/2012 - 16:31

This is a cool little grep search to pull any IPs from a text file:
grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' file_with_ips_in_it.txt | sort | uniq