Created
February 14, 2017 16:50
-
-
Save captn3m0/ebfb3e800f42c32f9ba2dc31393b8b86 to your computer and use it in GitHub Desktop.
imdbparser.sh
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 | |
mkdir -p data | |
cd data | |
FILES="ratings language certificates genres running-times" | |
for FILE in $FILES; do | |
wget "ftp://ftp.fu-berlin.de/pub/misc/movies/database/$FILE.list.gz" | |
done | |
gunzip *.gz | |
for i in *.list; do iconv -f ISO-8859-1 -t UTF8 $i >"u8${i}"; done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment