Created
November 2, 2014 09:15
-
-
Save rghose/a7a6893f9ec984841f21 to your computer and use it in GitHub Desktop.
Parse names from the list
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 | |
fileName=$1 | |
for c in $(cat $fileName); do | |
path=$(echo $c | grep '/wiki/' | sed 's/href="//' | sed 's/"//') | |
if [ ! -z $path ] ; then | |
python python_parser.py http://en.wikipedia.org$path; | |
fi; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment