Skip to content

Instantly share code, notes, and snippets.

@chasgames
Last active October 14, 2019 15:42
Show Gist options
  • Save chasgames/06cd7d1f5b3122b401b4a84376b8f3ae to your computer and use it in GitHub Desktop.
Save chasgames/06cd7d1f5b3122b401b4a84376b8f3ae to your computer and use it in GitHub Desktop.
grep match ipv4/cidr e.g 127.0.0.1/32
grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}\b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment