Last active
January 3, 2016 04:09
-
-
Save coderofsalvation/8406892 to your computer and use it in GitHub Desktop.
retrieves given urls and extracts links and prints them line by line
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
| # retrieves given urls and extracts links and prints them line by line | |
| # usage: curl "2webapp.com/bashlive/" | htmldompath | htmlgreplinks | |
| # @dependency sed awk curl | |
| / /bash/function/string/htmldompath! | |
| / /bash/function/string/htmlgreplinks! | |
| get_url_and_extract_links(){ | |
| curl -s "$1" | htmldompath 2>/dev/null | htmlgreplinks 2>/dev/null | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment