By admin, 19 December, 2012 Topic Technology Tips & Clues 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