Created
July 2, 2013 17:47
-
-
Save jamiehs/5911467 to your computer and use it in GitHub Desktop.
Looping through a list of URLs in a text file and optionally stripping the schema.
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 | |
for URL in $(cut -d, -f2 < url_list.txt) | |
do | |
URL=$(sed -e 's/^http\(\|s\):\/\///g' <<< "$URL" ) | |
echo $URL | |
done |
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
http://www.amazon.com | |
https://gist.github.com | |
http://www.wikipedia.org/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment