#!/bin/sh # ./cleanup.sh find . -name "*.pyc" -exec rm -rf {} \; while read dir; do echo "Syncing Files in $dir..." rsync -av --delete $dir vu2004@www.kasu.at:~/ done < files_to_sync.txt echo "Force Django reload..." ssh vu2004@www.kasu.at "touch kasu/wsgi.py" echo "done."