Last active
December 30, 2015 15:49
-
-
Save yaph/7850515 to your computer and use it in GitHub Desktop.
DBpedia/Wikipedia CSV manipulation
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
# DBpedia table | |
csvcut -c 2 Film.csv | sed -e 's/(.*)$//' > film-titles.txt | |
# wikitables CSV | |
csvcut -c 1 List_of_Academy_Award-winning_films.csv | sed -e 's/(.*)//' | sed -e 's/\"//g' > film-titles.txt | |
# fix names | |
sed -e 's/|.*}//g' -e 's/{//' -i datasets/populated-places-locations.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment