Last active
December 20, 2015 06:39
-
-
Save devnore/6087683 to your computer and use it in GitHub Desktop.
Wrapper fro dig that deals with chrome adding protocol when copying and cutting text from addressbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST=$(echo $1 | sed 's/http:\/\///;s|\/.*||') | |
shift | |
/usr/bin/dig $HOST $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment