Created
December 30, 2013 04:27
-
-
Save josquin-research-project/8177804 to your computer and use it in GitHub Desktop.
Bash script which can download scores of all composers using wget. 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 wget installed on your computer (typically Linux computers have it installed by default but OS X computers do not). Type: "which …
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 | |
wget https://github.com/josquin-research-project/jrp-scores/archive/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 | |
wget https://github.com/josquin-research-project/$i/archive/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