Created
September 23, 2015 13:18
-
-
Save mdnmdn/da56d8bca65ceb6658a9 to your computer and use it in GitHub Desktop.
Extract all http base address from a file
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
grep -E "https?\:" filename.config | sed -E 's/^.*(https?:\/\/[^\/"]+).*$/\1/' | sort | uniq | |
# use to copy to clipboard (osx only) | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment