Skip to content

Instantly share code, notes, and snippets.

@stephanb
Created December 2, 2014 14:12
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephanb/4831037aae26e92a3890 to your computer and use it in GitHub Desktop.
Save stephanb/4831037aae26e92a3890 to your computer and use it in GitHub Desktop.
SVN: add all modified files; delete all removed files
svn rm $(svn status | grep "^\!" | cut -d " " -f 8)
svn add $(svn status | grep "^?" | cut -d " " -f 8)
@stephanb
Copy link
Author

stephanb commented Dec 2, 2014

If you're presented with a long list of modified and deleted files in your SVN repository, e.g. after a version update, you might find the commands above handy. They split all lines from svn status starting with ! or ? by single space characters (cut -d " ") and pass the 8th field (-f 8) to svn rm/svn add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment