Automatically remove all nonexsiting files in the current dir from svn


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/bash
  2.  
  3. if [ ! "$1" ]
  4. then
  5. 1='.'
  6. fi
  7.  
  8. svn rm $1 `svn st $1 | grep '^!.*' | tr -d '! ' | tr '\n' ' ' | sort -n`

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.