Archiving a bunch of old stuff

This commit is contained in:
Dan Buch
2015-06-22 13:15:42 -05:00
parent a6ec1d560e
commit bd1abd8734
395 changed files with 1 additions and 76 deletions

21
oldstuff/algs4/download-others Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -e
set -x
OTHERS="$(cat others.txt)"
cd src/java
for other in $OTHERS
do
if [ ! -f "$other" ]
then
dn=$(dirname "$other")
mkdir -p "$dn"
pushd "$dn"
curl -O "http://algs4.cs.princeton.edu/${other}"
chmod 444 "$(basename "$other")"
popd
fi
done