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/8177884 to your computer and use it in GitHub Desktop.
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".
#!/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