Created
December 6, 2017 15:46
-
-
Save bgstack15/bb1b8aaa5f49e4bfadc2775eca673c77 to your computer and use it in GitHub Desktop.
Get hrefs from html
This file contains hidden or 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/sh | |
# read stdin | |
grep -oE 'href=\".+\"' | sed -r -e 's/^href=\"//g;' -e 's/\"\s*$//;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment