Skip to content

Instantly share code, notes, and snippets.

@devnore
Last active December 20, 2015 06:39
Show Gist options
  • Save devnore/6087683 to your computer and use it in GitHub Desktop.
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
#!/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