Created
June 5, 2010 01:08
-
-
Save jasonm23/426168 to your computer and use it in GitHub Desktop.
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 | |
# read a list of urls and find code resource related keywords. | |
# url list via stdin. | |
while read a; do | |
echo @@@$a | |
curl -s $a | grep -E 'svn|swc|zip|git|download|source' | |
echo @@@END | |
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
# Cygwin variety... (we're pulling from the adrian parr CSV hence read a b c (and the sed / tr to cleanup the input)) | |
cat /dev/clipboard | sed 's/",/ @/g' | tr -d '"' | while IFS=@ read a b c; | |
do | |
echo "@@@${a}::curl ${c}"; | |
curl -s $c | grep -E 'svn|git|download|source|zip|swc|tar'; echo "@@@END@@@"; | |
done > scrape.txt |
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
# grab svn url's for libspark.org | |
pbpaste | grep -o '/svn/as3/.*/"' | tr -d '"' | cut -d '/' -f-4 | sort | uniq | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment