Skip to content

Instantly share code, notes, and snippets.

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 josquin-research-project/8177804 to your computer and use it in GitHub Desktop.
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 …
#!/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