Skip to content

Instantly share code, notes, and snippets.

@captn3m0
Created February 14, 2017 16:50
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 captn3m0/ebfb3e800f42c32f9ba2dc31393b8b86 to your computer and use it in GitHub Desktop.
Save captn3m0/ebfb3e800f42c32f9ba2dc31393b8b86 to your computer and use it in GitHub Desktop.
imdbparser.sh
#!/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