Using GREP to Find an IP Address
-
This is one that I need from time to time but there is no reasonable way to remember. Grep for IP Address. In case you ever need it, here it is:
grep -E '.*((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])'
Reference from here: http://www.skrakes.com/2010/03/03/grep-ip-address