Skip to content

Instantly share code, notes, and snippets.

@rghose
Created November 2, 2014 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rghose/a7a6893f9ec984841f21 to your computer and use it in GitHub Desktop.
Save rghose/a7a6893f9ec984841f21 to your computer and use it in GitHub Desktop.
Parse names from the list
#!/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