Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Created November 15, 2013 20:34
Show Gist options
  • Save jamesfalkner/7491111 to your computer and use it in GitHub Desktop.
Save jamesfalkner/7491111 to your computer and use it in GitHub Desktop.
#!/bin/sh
mkdir -p TEMPLATES
cd TEMPLATES
echo 'mget *' | /opt/local/bin/cadaver http://localhost:8080/webdav/guest/journal/Templates
for i in * ; do
[ `echo $i | egrep ^[0-9]+$` ] &&
mv $i $i.vm
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment