Automatically remove all nonexsiting files in the current dir from svn

#!/bin/bash

if [ ! "$1" ]
then
1='.'
fi

svn rm $1 `svn st $1 | grep '^!.*' | tr -d '! ' | tr '
' ' ' | sort -n`

source

Leave a Reply