DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Remove All Subversion Unversoned Files and Directories Automatically


svn status | grep ^\? | cut -c9- | xargs -d \n rm -r

Ref: http://stackoverflow.com/questions/239340/automatically-remove-subversion-unversioned-files

Note:

  1. In "cut -c9-", "-c" means character, "9-" means retaining all characters from the 9th to the end of each line of input file;

  2. In "xargs -d \n...", -d specifies the delimiter, here it's the carriage return(\n);



Published

Oct 22, 2013

Last Updated

Oct 22, 2013

Category

Tech

Tags

  • cut 1
  • shell 46
  • SVN 12

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor