Created
December 30, 2013 04:37
-
-
Save josquin-research-project/8177884 to your computer and use it in GitHub Desktop.
Bash script which can download scores of all composers using curl. First verify that you are using a bash shell by typing "echo $SHELL" in the terminal. It should reply with "/usr/bin/bash". Next, verify that you have curl installed on your by typing "which curl". The reply should be something like "/usr/bin/curl".
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
#!/usr/bin/bash | |
curl -L https://github.com/josquin-research-project/jrp-scores/archive/master.zip > master.zip | |
unzip master.zip | |
rm master.zip | |
mv jrp-scores-master jrp-scores | |
cd jrp-scores | |
rm .gitignore .gitmodules .note | |
for i in [A-Z]?? | |
do | |
echo Downloading $i scores ... | |
(cd $i | |
mkdir -p kern | |
curl -L https://github.com/josquin-research-project/$i/archive/master.zip > master.zip | |
unzip master.zip | |
mv $i-master/* kern | |
rmdir $i-master | |
rm master.zip | |
) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment