Skip to content

Instantly share code, notes, and snippets.

@dmil
Created April 6, 2017 14:42
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 dmil/6930423b29372bec077c9c660f1731f2 to your computer and use it in GitHub Desktop.
Save dmil/6930423b29372bec077c9c660f1731f2 to your computer and use it in GitHub Desktop.
# delete directory if it exists
rm -rf ~/Desktop/chessdata
# make new directory
mkdir ~/Desktop/chessdata
#change into directory
cd ~/Desktop/chessdata
# download zip files
wget http://ratings.fide.com/download/standard_{jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec}{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17}frl.zip
wget http://ratings.fide.com/download/{jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec}{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17}frl.zip
# unzip zip files (creates a bunch of txt files)
ls *.zip | xargs -I {} unzip {}
# delete zip files
rm -rf *.zip
# combine text files
cat *.txt > all.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment