Created
October 29, 2018 23:40
-
-
Save joshlawrence/f08b6d3401864bd29d9b37d10186d487 to your computer and use it in GitHub Desktop.
Script to dump all URLs in a page
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 | |
# | |
# dumps all URLs on a single page to a file | |
printf "%s\n" "Enter the url and press [ENTER] " | |
read -ep "url: " url | |
lynxopts=( -dump -listonly -nonumbers -notitle ); | |
lynx "${lynxopts[@]}" "$url" > linklist.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment