Skip to content

Instantly share code, notes, and snippets.

@oe7drt
Created June 21, 2015 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oe7drt/bc5d95731380328cc447 to your computer and use it in GitHub Desktop.
Save oe7drt/bc5d95731380328cc447 to your computer and use it in GitHub Desktop.
grep for ip addresses
egrep -o '([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})' [filename-in-which-you-want-to-grep-for]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment