Skip to content

Instantly share code, notes, and snippets.

@philly-mac
Created April 20, 2011 08:14
Show Gist options
  • Save philly-mac/930692 to your computer and use it in GitHub Desktop.
Save philly-mac/930692 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
puts `egrep -i ".*#{ARGV.join(".*")}.*" /etc/hosts`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment