Created
April 6, 2017 14:42
-
-
Save dmil/6930423b29372bec077c9c660f1731f2 to your computer and use it in GitHub Desktop.
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
# 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