Skip to content

Instantly share code, notes, and snippets.

@bquistorff
Created November 20, 2014 03:32
Show Gist options
  • Save bquistorff/7b46388ad7780115a726 to your computer and use it in GitHub Desktop.
Save bquistorff/7b46388ad7780115a726 to your computer and use it in GitHub Desktop.
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