Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Remove non-versioned files
#! /bin/bash
# Removed non-versioned files recursively (otherwise pipe through grep -v '\\')
svn status | grep ^\? | cut -c 9- | sed -e 's/\\/\//g' | xargs -Ifile rm -rf file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment