Skip to content

Instantly share code, notes, and snippets.

@theonewolf
Last active January 2, 2016 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theonewolf/8248070 to your computer and use it in GitHub Desktop.
Save theonewolf/8248070 to your computer and use it in GitHub Desktop.
Regex searching for network configuration state
grep '128\.\|monsoon\|127\.\|localhost' * -R 2> /dev/null
test.txt:128.213.1.15
test.txt:localhost
test.txt:monsoon.elijah.cs.cmu.edu
test.txt:127.0.0.1
test.txt:127.0.1.1
grep '128\.\|monsoon\|127\.\|localhost' * -R 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment